protected override void OnResume() { // Handle when your app resumes if (Application.Current.Properties.ContainsKey("api_key")) { FrontPageMaster fpm = new FrontPageMaster(); fpm.Master = new FrontPageMasterMenu(); fpm.Detail = new NavigationPage(new FrontPageDetail()) { BarBackgroundColor = Color.FromHex("#016A6F"), }; MainPage = fpm; StartingPoint(fpm); } else { MainPage = new NavigationPage(new MainPage()) { BarBackgroundColor = Color.FromHex("#016A6F"), }; } }
private async Task LoginUser() { if (await CheckLoginCredentials() == true) { FrontPageMaster fpm = new FrontPageMaster(); fpm.Master = new FrontPageMasterMenu(); fpm.Detail = new NavigationPage(new FrontPageDetail()) { BarBackgroundColor = Color.FromHex("#016A6F"), }; Application.Current.MainPage = fpm; StartingPoint(fpm); } }