Exemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            Form newDocRec = new AddInfoAboutVisit(thisPatient, thisDoctor);

            newDocRec.ShowDialog();
            ReloadForm();
        }
Exemplo n.º 2
0
 private void button2_Click(object sender, EventArgs e)
 {
     if (dataGridViewDocRecs.SelectedCells[0] != null && dataGridViewDocRecs.SelectedCells[0].ToString() != "")
     {
         using (ModelMedDBContainer db = new ModelMedDBContainer())
         {
             DoctorRecord dr        = db.DoctorRecordSet.Find(dataGridViewDocRecs.SelectedRows[0].Cells[0].Value, thisDoctor.NameHashID);
             Form         newDocRec = new AddInfoAboutVisit(thisPatient, thisDoctor, dr);
             newDocRec.ShowDialog();
         }
     }
     ReloadForm();
 }