Exemplo n.º 1
0
 private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     ID_Diagnoza_Pacienta = dataGridView1.SelectedRows[0].Cells[0].Value.ToString();
     MySqlOperations.Search_In_ComboBox(dataGridView1.SelectedRows[0].Cells[1].Value.ToString(), comboBox4);
     textBox3.Text = dataGridView1.SelectedRows[0].Cells[2].Value.ToString();
     if (dataGridView1.SelectedRows[0].Cells[3].Value.ToString() == "Да")
     {
         checkBox1.Checked = true;
     }
     else
     {
         checkBox1.Checked = false;
     }
     button6.Visible = true;
     button8.Visible = false;
 }
Exemplo n.º 2
0
 private void dataGridView2_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     ID_Otdeleniya = dataGridView2.SelectedRows[0].Cells[0].Value.ToString();
     MySqlOperations.Search_In_ComboBox(dataGridView2.SelectedRows[0].Cells[1].Value.ToString(), comboBox2);
     button7.Enabled = false;
     button5.Enabled = true;
 }