예제 #1
0
 public static FRM_Pesquisar Instance()
 {
     if (instance == null)
     {
         instance = new FRM_Pesquisar();
     }
     return(instance);
 }
예제 #2
0
        private void mFechamento_Click(object sender, EventArgs e)
        {
            for (int intIndex = Application.OpenForms.Count - 1; intIndex > 0; intIndex--)
            {
                if (Application.OpenForms[intIndex] != this)
                {
                    Application.OpenForms[intIndex].Close();
                }
            }
            FRM_Pesquisar form_pesquisar = new FRM_Pesquisar();

            form_pesquisar.MdiParent = this;
            form_pesquisar.Show();
        }