Пример #1
0
 /// <summary>
 /// Click event to handle the login process
 /// </summary>
 /// <param name="sender">sender object</param>
 /// <param name="e">event data</param>
 private void Login_Click(object sender, EventArgs e)
 {
     if (txtUsername.Text.Trim() == Settings.Default.Username && txtPassword.Text.Trim() == Settings.Default.Password)
     {
         var frmManage = new Manage();
         frmManage.Show();
         this.Hide();
     }
     else
     {
         MessageBox.Show(
             Resources.Login_Validation_Message,
             Resources.Login_Validation_Message_Title,
             MessageBoxButtons.OK,
             MessageBoxIcon.Information);
     }
 }