Beispiel #1
0
 private void buttonAddPatient_Click(object sender, EventArgs e)
 {
     if (Text == "Хронические заболевания")
     {
         connects.InsertToTableChronicDiseases(_idPatient, textBoxTitle.Text, dateTimePicker1.Value,
                                               textBoxNote.Text);
     }
     else if (Text == "Прививки")
     {
         connects.InsertToTableInoculations(_idPatient, textBoxTitle.Text, dateTimePicker1.Value,
                                            textBoxNote.Text);
     }
     Close();
 }