private async void OpenPage() { KooshDarooDatabase odb = new KooshDarooDatabase(); var oLoginItemS = odb.GetItemsAsync(); if (oLoginItemS.Result.Count > 0) { MemberService memberservices = new MemberService(); //var member = await memberservices.GetMemberByPhoneNoAsync(oLoginItemS.Result[0].PhoneNo); var member = Task.Run(() => memberservices.GetMemberByPhoneNoAsync(oLoginItemS.Result[0].PhoneNo)); if (member.Result.Count == 0) //if (member.Count == 0) { oLoginItemS.Result.ForEach(f => odb.DeleteItemAsync(f)); MainPage = new SignUpPage(); } else { MainPage = new MainPageTabbed(); } } else { MainPage = new SignUpPage(); } //MainPage = new NavigationPage(new SignUpPage()); }
public App() { InitializeComponent(); DependencyService.Register <MockDataStore>(); //MainPage = new MainPage(); MainPage = new MainPageTabbed(); }