public App() { XF.Material.Forms.Material.Init(this); InitializeComponent(); //MainPage = new MainPage(); //MainPage = new EjemploPage(); MainPage = new SimpleLoginPage(); }
public App() { //Register Syncfusion license Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense("Mjc5MTI1QDMxMzgyZTMxMmUzMEFSY3FKOGVFcGVZYUZJSW1qazJVSWFnRUtIZHRML2hGM3JjRGFORFlkOEE9"); InitializeComponent(); SimpleLoginPage login = new SimpleLoginPage(); MainPage = new NavigationPage(login); }
public void CallAPIsyncPublication() { SimpleLoginPage usercito = new SimpleLoginPage(); User user = usercito.GetUser(); HttpClient client = new HttpClient(); var endopoint = client.BaseAddress = new Uri($"http://192.168.1.102:8080/cooktime1/api/services/getUserBubbleSort/{user.email}"); var recets = client.GetAsync(endopoint).Result; if (recets.IsSuccessStatusCode) { var response = recets.Content.ReadAsStringAsync().Result; var recet = JsonConvert.DeserializeObject <List <Recet> >(response); LatestStories = new ObservableCollection <Recet>(recet); } }
async private Task <bool> Startup(bool skipWalkthrough = false) { #if DEBUG bool watchedTutorial = skipWalkthrough; #else bool watchedTutorial = Preferences.Get("WatchedTutorial", false); #endif if (!watchedTutorial) { MainPage = new Onboarding(); } else if (await UserManager.Current.IsLoggedIn()) { MainPage = new AppShell(); } else { MainPage = new SimpleLoginPage(); } return(true); }
public App() { InitializeComponent(); MainPage = new SimpleLoginPage(); }