private void button4_Click(object sender, EventArgs e) { GetPatientID.patientID = lbID.Text; CreatePatient c = new CreatePatient(this); c.setID(lbID.Text); c.ShowDialog(); }
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(); } }
private void button1_Click(object sender, EventArgs e) { CreatePatient patient = new CreatePatient(this); patient.ShowDialog(); }