Example #1
0
		private static void OnUpgradeAccountCompleted(SaveUserOperation operation)
		{
			string errorStatus = operation.CheckErrorStatus();
			if (errorStatus != null)
			{
				MessageBoxEx.ShowError("Upgrade to premium", errorStatus, null);
				return;
			}

			MessageBoxEx.ShowInfo("Upgrade to premium", "You have been upgraded to a Premium member", null);
		}
Example #2
0
		private void OnUpdateSettingsCompleted(SaveUserOperation operation)
		{
			string errorStatus = operation.CheckErrorStatus();
			if (errorStatus != null)
			{
				MessageBoxEx.ShowError("Update account settings", errorStatus, null);
				return;
			}

			MessageBoxEx.ShowInfo("Update account settings", "Your settings have been updated", null);
		}
Example #3
0
		private void OnRegisterCompletedStep3(SaveUserOperation operation)
		{
			string errorStatus = operation.CheckErrorStatus();
			if (errorStatus != null)
			{
				MessageBoxEx.ShowError("Register account", errorStatus, null);
				return;
			}

			string replacements = string.Format("HttpDocumentUri={0}& Password={0}", UriHelper.UriDocument().ToString(), RegisterPassword);
			App.Model.UserServices.EmailTemplateUser(RegisterUserName, ResxResources.EmailFrom, ResxResources.EmailAddress, ResxResources.EmailSubjectWelcome, "Welcome.htm", replacements, OnRegisterCompletedStep4, null/*userState*/);
		}
Example #4
0
		private void OnCancelPremiumCompleted(SaveUserOperation operation)
		{
			string errorStatus = operation.CheckErrorStatus();
			if (errorStatus != null)
			{
				MessageBoxEx.ShowError("Cancel premium membership", errorStatus, null);
				return;
			}

			MessageBoxEx.ShowInfo("Cancel premium membership", "Your Premium membership has been cancelled", null);
		}