Ejemplo n.º 1
0
 private void tsPrecrisptions_Click(object sender, EventArgs e)
 {
     if (prescription == null)
     {
         prescription             = new frmPatientPrescription();
         prescription.MdiParent   = this;
         prescription.FormClosed += new FormClosedEventHandler(prescription_FormClosed);
         prescription.Show();
     }
     else
     {
         prescription.Activate();
         prescription.WindowState = FormWindowState.Normal;
     }
 }
Ejemplo n.º 2
0
 void prescription_FormClosed(object sender, FormClosedEventArgs e)
 {
     prescription = null;
 }