예제 #1
0
 public App()
 {
     InitializeComponent();
     System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls | System.Net.SecurityProtocolType.Tls11 | System.Net.SecurityProtocolType.Tls12;
     RockClient.CreateDatabase();
     MainPage = new AvalanchePage();
     Task.Factory.StartNew(new Action(backgroundAction));
 }
예제 #2
0
 public App()
 {
     InitializeComponent();
     RockClient.CreateDatabase();
     MainPage = new NavigationPage(new Avalanche.MainPage("home"));
     if (!App.Current.Properties.ContainsKey("SecondRun"))
     {
         MainPage.Navigation.PushModalAsync(new LaunchPage());
         App.Current.Properties["SecondRun"] = true;
     }
 }
예제 #3
0
 public App()
 {
     if (App.Current.Properties.ContainsKey("SecondRun"))
     {
         DoAppStartup();
     }
     else
     {
         MainPage = new AvalanchePage();
     }
     InitializeComponent();
     System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls | System.Net.SecurityProtocolType.Tls11 | System.Net.SecurityProtocolType.Tls12;
     RockClient.CreateDatabase();
     MainPage = new AvalanchePage();
     Task.Factory.StartNew(new Action(backgroundAction));
 }