Пример #1
0
 /// <summary>
 /// Check if the user credentials are valid
 /// </summary>
 /// <param name="ConnectionString"></param>
 /// <returns>success or failure</returns>
 /// Method Revision History
 ///
 /// Author             Date              Description
 /// ---------------------------------------------------
 /// Anuradha        05-Jan-2009        Intial Version
 ///
 private void CheckUsers()
 {
     if (ValidateEnteredText())
     {
         bool bValid = Credentials.Checkuser(txtUserName.Text, txtPassword.Text);
         if (bValid)
         {
             frmBMCExchangeConfig objMainForm = new frmBMCExchangeConfig();
             this.Hide();
             //this.Close();
             objMainForm.ShowDialog();
         }
         else
         {
             MessageBox.Show("Invalid UserName / Password, Please Try again...", "BMC Login", MessageBoxButtons.OK, MessageBoxIcon.Error);
             txtPassword.Focus();
             return;
         }
     }
 }