Exemple #1
0
 private void Dashboard_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.Control && e.KeyCode == Keys.S)
     {
         ConnectDb.UpdateDoctors(doctor);
         dataGridView1.DataSource = ConnectDb.GetDoctors();
     }
 }
Exemple #2
0
 private void button1_Click(object sender, EventArgs e)
 {
     doctor            = new Doctor();
     doctor.Id         = Id;
     doctor.Name       = txtName.Text.ToString();
     doctor.Surname    = txtSurname.Text.ToString();
     doctor.PeselNo    = txtPeselNo.Text.ToString();
     doctor.PwzNo      = txtPwzNo.Text.ToString();
     doctor.Speciality = txtSpeciality.Text.ToString();
     doctor.Username   = txtUsername.Text.ToString();
     doctor.Password   = txtPassword.Text.ToString();
     doctor.Type       = 2;
     ConnectDb.UpdateDoctors(doctor);
 }