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); }
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); }
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*/); }
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); }