示例#1
0
 public static FRM_Consulta Instance()
 {
     if (instance == null)
     {
         instance = new FRM_Consulta();
     }
     return(instance);
 }
示例#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();
        }
示例#3
0
 private void FRM_Consulta_FormClosed(object sender, FormClosedEventArgs e)
 {
     instance = null;
 }