private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e) { if (dataGridView1.Columns[e.ColumnIndex].Name == "Column7") { GetPatientID.patientID = dataGridView1.CurrentRow.Cells[1].Value.ToString(); CreatePatient c = new CreatePatient(this); c.setID(dataGridView1.CurrentRow.Cells[1].Value.ToString()); c.ShowDialog(); } else if (dataGridView1.Columns[e.ColumnIndex].Name == "Column8") { GetPatientID.patientID = dataGridView1.CurrentRow.Cells[1].Value.ToString(); MedicalRecord m = new MedicalRecord(this); m.setID(); panel2.Controls.Clear(); m.TopLevel = false; panel2.Controls.Add(m); m.Show(); } }
public CreatePatient(MedicalRecord m) { InitializeComponent(); _m = m; }
public Prescription(MedicalRecord m) { InitializeComponent(); _m = m; }
public Record(MedicalRecord m) { InitializeComponent(); _m = m; }