Пример #1
0
 private void button_ok_Click(object sender, EventArgs e)
 {
     Form1.g_username = this.textBox_UserName.Text;
     Form1.g_password = this.textBox_Password.Text;
     if (this.textBox_UserName.Text != "eng004" || this.textBox_Password.Text != "eng004")
     {
         MessageBox.Show(LanguageMngr.pls_enter_right_usrname_pwd());
     }
     if (this.textBox_UserName.Text == "eng004" || this.textBox_Password.Text == "eng004")
     {
         this.Close();
     }
 }