Example #1
0
 /**
  * <summary>This is run when the configure login info menu option is selected.</summary>
  * <remarks>This will reset the login info credentials so that they may be configured while running the application rather than at
  * runtime.</remarks>
  */
 private void configureLoginInfoToolStripMenuItem_Click(object sender, EventArgs e)
 {
     LoginPrompt.loginInfo myLoginInfo = LoginPrompt.ShowDialog();
     systemCode = myLoginInfo.systemCode;
     userName   = myLoginInfo.userName;
     password   = myLoginInfo.passWord;
 }
Example #2
0
        internal bool ShowLoginDialog()
        {
            LoginPrompt prompt = new LoginPrompt();
            prompt.Owner = ContainingWindow;

            bool? success = prompt.ShowDialog();
            return success.HasValue && success.Value;
        }
Example #3
0
 /// <summary>
 /// Forces this connection to log out of the current MOB, but stay in the account.
 /// </summary>
 public void ReturnToLoggedInPrompt()
 {
     lock (this.prompts)
     {
         if (this.LoggedInAccount == null)
         {
             LogOut();
         }
         else
         {
             ClearPrompts();
             mainPrompt = LoginPrompt.GetLoggedInPrompt(this);
             mainPrompt.OnTransition();
         }
     }
 }