Ejemplo n.º 1
0
 public static FRM_Consulta Instance()
 {
     if (instance == null)
     {
         instance = new FRM_Consulta();
     }
     return(instance);
 }
Ejemplo n.º 2
0
        private void mConsulta_Click_1(object sender, EventArgs e)
        {
            for (int intIndex = Application.OpenForms.Count - 1; intIndex > 0; intIndex--)
            {
                if (Application.OpenForms[intIndex] != this)
                {
                    Application.OpenForms[intIndex].Close();
                }
            }
            FRM_Consulta form_consulta = FRM_Consulta.Instance();

            form_consulta.MdiParent = this;
            form_consulta.Show();
        }
Ejemplo n.º 3
0
 private void FRM_Consulta_FormClosed(object sender, FormClosedEventArgs e)
 {
     instance = null;
 }