private void edit_visit_btn_Click(object sender, EventArgs e)
 {
     int visitId = dictIndexId[Int32.Parse(visits_dataGridView.CurrentRow.Cells["id"].Value.ToString())];
        AddVisitForm form = new AddVisitForm(this, patient.id, visitId);
        form.ShowDialog();
 }
 private void button1_Click(object sender, EventArgs e)
 {
     AddVisitForm form = new AddVisitForm(this, patient.id);
     form.ShowDialog();
 }