public async void Execute(object parameter) { User user = parameter as User; if (user != null) { if (String.IsNullOrWhiteSpace(user.Username) || String.IsNullOrWhiteSpace(user.Password)) { MessageBox.Show("Please provide username and password"); return; } this.basePage.IsBusy = true; var operationStatus = await App.LoginService.LoginUser(user.Username, user.Password); this.basePage.IsBusy = false; if ((bool)operationStatus) { PageRouter.Navigate(Page.EntriesList); } else { MessageBox.Show(operationStatus.StatusDescription); } } else { MessageBox.Show("Internal error occured"); } }
public void Execute(object parameter) { PageRouter.Navigate(Page.CreateAccount); }