private void Register() { if (ConfirmPassword.ArePasswordsMatch) { if (PasswordContainer.HasPassword) { try { //AccountOperation accountOperation = new AccountOperation(); AccountData account = new AccountData { Username = Account.Username, AccessType = Account.AccessType, IsActive = Account.IsActive = true }; //accountOperation.Save(account, PasswordContainer.SecurePassword); App.Current.MainView.UserNavigation.NavigateBack(); NotificationHub.GetInstance().ShowMessage("Registered a new user"); } catch (Exception e) { NotificationHub.GetInstance().ShowMessage(e.Message); } } else { NotificationHub.GetInstance().ShowMessage("No password found."); } } else { NotificationHub.GetInstance().ShowMessage("Passwords do not match."); } }