Example #1
0
 private void buttonAddPatient_Click(object sender, EventArgs e)
 {
     if (Text == "Лабораторные исследования")
     {
         connects.InsertToTableLaboratoryreSearch(_idPatient, textBoxTitle.Text, dateTimePicker1.Value,
                                                  textBoxLaboratory.Text, textBoxIncarceration.Text);
     }
     else if (Text == "УЗИ")
     {
         connects.InsertToTableUltrasonography(_idPatient, textBoxTitle.Text, dateTimePicker1.Value,
                                               textBoxLaboratory.Text, textBoxIncarceration.Text);
     }
     Close();
 }