/// <summary> /// Clean up after displaying the web account manager. /// </summary> private void Cleanup() { if (this.ShowingUI) { AccountsSettingsPane.GetForCurrentView().AccountCommandsRequested -= OnAccountCommandsRequested; } this.ShowingUI = false; _successHandler = null; _failedHandler = null; }
/// <summary> /// Displays the Web Account Manager for users to chose an account to authenticate with. /// </summary> /// <param name="successHandler">Call back for when an account is successfully choosen by the user.</param> /// <param name="failedHandler">Call back for when an error or cancelled UI occurs by the user.</param> public void Show(WebAccountManangerSuccessHandler successHandler, WebAccountManangerFailedHandler failedHandler) { if (this.ShowingUI == false) { AccountsSettingsPane.GetForCurrentView().AccountCommandsRequested += OnAccountCommandsRequested; } this.ShowingUI = true; _successHandler = successHandler; _failedHandler = failedHandler; AccountsSettingsPane.Show(); }
/// <summary> /// Clean up after displaying the web account manager. /// </summary> private void Cleanup() { if (this.ShowingUI) AccountsSettingsPane.GetForCurrentView().AccountCommandsRequested -= OnAccountCommandsRequested; this.ShowingUI = false; _successHandler = null; _failedHandler = null; }
/// <summary> /// Displays the Web Account Manager for users to chose an account to authenticate with. /// </summary> /// <param name="successHandler">Call back for when an account is successfully choosen by the user.</param> /// <param name="failedHandler">Call back for when an error or cancelled UI occurs by the user.</param> public void Show(WebAccountManangerSuccessHandler successHandler, WebAccountManangerFailedHandler failedHandler) { if (this.ShowingUI == false) AccountsSettingsPane.GetForCurrentView().AccountCommandsRequested += OnAccountCommandsRequested; this.ShowingUI = true; _successHandler = successHandler; _failedHandler = failedHandler; AccountsSettingsPane.Show(); }