Ejemplo n.º 1
0
		private void OnRecoverClick(object sender, RoutedEventArgs e)
		{
			AuthenticationDialog dialog = new AuthenticationDialog(AuthenticationDialog.DialogType.RecoverSignIn);
			dialog.Closed += AuthenticationDialogClosed;
		}
Ejemplo n.º 2
0
		internal void OnSigninClick(object sender, RoutedEventArgs e)
		{
			AuthenticationDialog dialog = new AuthenticationDialog(AuthenticationDialog.DialogType.SignIn);
			dialog.Closed += AuthenticationDialogClosed;
		}
Ejemplo n.º 3
0
		private void OnChangePasswordClick(object sender, RoutedEventArgs e)
		{
			if (!App.Model.UserServices.User.IsAuthenticated)
			{
				MessageBoxEx.ShowWarning("Change password", "You are not signed in", null);
				return;
			}

			AuthenticationDialog dialog = new AuthenticationDialog(AuthenticationDialog.DialogType.ChangePassword);
			dialog.Closed += ChangePasswordDialogClosed;
		}
Ejemplo n.º 4
0
		private void OnDeleteAccountClick(object sender, RoutedEventArgs e)
		{
			if (!App.Model.UserServices.User.IsAuthenticated)
			{
				MessageBoxEx.ShowWarning("Delete account", "You are not signed in", null);
				return;
			}

			AuthenticationDialog dialog = new AuthenticationDialog(AuthenticationDialog.DialogType.DeleteAccount);
			dialog.Closed += DeleteAccountDialogClosed;
		}
Ejemplo n.º 5
0
		private void OnValidateResetPasswordCompleted(InvokeOperation<string> operation)
		{
			string errorStatus = operation.CheckErrorStatus();
			string userName = (errorStatus != null ? null : operation.Value);
			if (userName != null)
			{
				AuthenticationDialog dialog = new AuthenticationDialog(AuthenticationDialog.DialogType.ResetPassword);
				dialog.ResetUserName = userName;
				dialog.ResetPasswordCode = m_ResetPasswordCode;
			}
			else
			{
				AuthenticationDialog dialog = new AuthenticationDialog(AuthenticationDialog.DialogType.RecoverSignIn);
				dialog.RecoverErrorStatus = "Sorry but the link you clicked on is no longer valid.  Enter your email address again and we will send you a new recovery email.";
			}
		}