Fix code for building with corefx
[platform/core/csapi/download.git] / tct-download-tizen-tests / src / Program.cs
1 using System;
2 using System.Threading.Tasks;
3 using Tizen.Applications;
4 using Xamarin.Forms;
5 using Xamarin.Forms.Platform.Tizen;
6 using TestFramework;
7
8 namespace TestFramework {
9     public class App : Xamarin.Forms.Application
10     {
11         public App()
12         {
13              MainPage = new NavigationPage(new TestMainPage());
14         }
15
16         protected override void OnStart()
17         {
18             // Handle when your app starts
19         }
20
21         protected override void OnSleep()
22         {
23             // Handle when your app sleeps
24         }
25
26         protected override void OnResume()
27         {
28             // Handle when your app resumes
29         }
30     }
31
32     public class MyApp : FormsApplication
33     {
34         protected override void OnCreate()
35         {
36             base.OnCreate();
37             Forms.Init(this);
38             LoadApplication(new App());
39         }
40     }
41
42     class Program {
43         static void Main(string[] args) {
44             MyApp myApp = new MyApp();
45             myApp.Run(args);
46         }
47     }
48 }