private void btnNewPatient_Click(object sender, EventArgs e) { PatientDetail pd = new PatientDetail(); pd.Show(); //Application.Run(); //this.Hide(); }
private void gvPatient_CellContentClick(object sender, DataGridViewCellEventArgs e) { if (gvPatient.Columns[e.ColumnIndex].Name == "btnView") { string strHN = gvPatient.CurrentRow.Cells["HN"].Value.ToString(); PatientDetail pd = new PatientDetail(strHN); pd.Show(); //Application.Run(); //this.Hide(); } }