private void tsbAdd_Click(object sender, EventArgs e)
 {
     NewPatientForm frmNewPat = new NewPatientForm();
     frmNewPat.MdiParent = this.MdiParent;
     frmNewPat.Show();
 }
Esempio n. 2
0
 private void tspNewPatient_Click(object sender, EventArgs e)
 {
     Forms.NewPatientForm frmNewPat = new Forms.NewPatientForm();
     frmNewPat.MdiParent = this;
     frmNewPat.Show();
 }
        private void tsbEdit_Click(object sender, EventArgs e)
        {
            if (dgvPatients.SelectedRows.Count > 0)
            {
                int patID = (int)dgvPatients.SelectedRows[0].Cells[0].Value;

                Database.patient patient = m_patMgr.getPatient(m_nSelectedID);
                NewPatientForm frmNewPat = new NewPatientForm(patient);
                frmNewPat.MdiParent = MdiParent;
                frmNewPat.Show();
            }
        }
 private void openPatientRecordToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Database.patient pat = m_appMgr.getAppointment(dvAppointments.SelectedAppointment.AppointmentID).patient;
     NewPatientForm patFrm = new NewPatientForm(pat);
     patFrm.MdiParent = MainParent.MainMDIParent;
     patFrm.Show();
 }