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(); }
private void btnAddNew_Click(object sender, EventArgs e) { FormPatientHistory frmPatientHistory = new FormPatientHistory(); frmPatientHistory.ShowDialog(); RefreshGridView(); }