public async void movePage() { if (SqliteConnectionSet._user.Count == 0) { await Navigation.PushModalAsync(new NavigationPage(new TabbedLogin())); } else { if ((CrossConnectivity.Current.IsConnected == false)) { await DisplayAlert(Constants.internetAlertTittle, Constants.internetAlertMessage, Constants.internetButton); await Navigation.PushModalAsync(new NavigationPage(new TabbedLogin())); } else { var method = await(manager.CheckUserNameAndPassword(SqliteConnectionSet._user[0].UserName, SqliteConnectionSet._user[0].Password)); App.currentOwner = method; await Navigation.PushModalAsync(new NavigationPage(new MyDogsPage())); } } }
public async static Task click() { var method = await(manager.CheckUserNameAndPassword(SqliteConnectionSet._user[0].UserName, SqliteConnectionSet._user[0].Password)); App.currentOwner = method; }