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