Exemplo n.º 1
0
 public static CuartosForm Instance()
 {
     if (form == null)
     {
         form = new CuartosForm();
     }
     return(form);
 }
Exemplo n.º 2
0
        private void toolStripButton3_Click(object sender, EventArgs e)
        {
            if (ActiveMdiChild != null)
            {
                ActiveMdiChild.Close();
            }
            var cuartosForm = CuartosForm.Instance();

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