Exemple #1
0
 public static ReservasForm Instance()
 {
     if (form == null)
     {
         form = new ReservasForm();
     }
     return(form);
 }
Exemple #2
0
        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            if (ActiveMdiChild != null)
            {
                ActiveMdiChild.Close();
            }
            var reservasForm = ReservasForm.Instance();

            reservasForm.MdiParent   = this;
            reservasForm.WindowState = FormWindowState.Maximized;
            reservasForm.Show();
        }