Beispiel #1
0
 /// <summary>
 /// Handles the Click event of the button1 control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
 private void button1_Click(object sender, EventArgs e)
 {
     try
     {
         OleDbCommand command = new OleDbCommand("SELECT EmpNumber,Login,Passwordd FROM Employees WHERE Login = '******'", connection); //WHERE Login = "******"Невірний логін або пароль");
     }
     connection.Close();
 }