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)); }
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; } }
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)); }