Exemplo n.º 1
0
 /// <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;
 }
Exemplo n.º 2
0
 /// <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();
 }
Exemplo n.º 3
0
 /// <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;
 }
Exemplo n.º 4
0
 /// <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();
 }