private void medicalCentresToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //Instance of frmMedicalCentreEntry
            frmMedicalCentreList MedicalCentreListForm = new frmMedicalCentreList();

            //make its parent of this parent
            MedicalCentreListForm.MdiParent = this;
            //display the form
            MedicalCentreListForm.Show();
        }
示例#2
0
        private void btnMedicalCentreLookup_Click(object sender, EventArgs e)
        {
            //creat an instance of frmMedicalCentreList
            frmMedicalCentreList MedicalCentreLookup = new frmMedicalCentreList();

            //make the MDI parent of this form the MDI parent of MedicalCentreLookup
            MedicalCentreLookup.MdiParent = this.MdiParent;
            //Open the form
            MedicalCentreLookup.Show();
        }