Beispiel #1
0
 private void gvMain_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     var id = gvMain.Rows[e.RowIndex].Cells["ID"].Value;
     var frmPatientHistory = new FormPatientHistory();
     frmPatientHistory.SetPatientHistory(Convert.ToInt32(id));
     frmPatientHistory.ShowDialog();
     RefreshGridView();
 }
Beispiel #2
0
 private void btnAddNew_Click(object sender, EventArgs e)
 {
     FormPatientHistory frmPatientHistory = new FormPatientHistory();
     frmPatientHistory.ShowDialog();
     RefreshGridView();
 }