Exemple #1
0
        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();
            }
        }
Exemple #2
0
 public CreatePatient(MedicalRecord m)
 {
     InitializeComponent();
     _m = m;
 }
Exemple #3
0
 public Prescription(MedicalRecord m)
 {
     InitializeComponent();
     _m = m;
 }
Exemple #4
0
 public Record(MedicalRecord m)
 {
     InitializeComponent();
     _m = m;
 }