Пример #1
0
 public static FRM_Relatorio_Mensal Instance()
 {
     if (instance == null)
     {
         instance = new FRM_Relatorio_Mensal();
     }
     return(instance);
 }
Пример #2
0
        private void mRelatorio_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_Relatorio_Mensal frm_rel = FRM_Relatorio_Mensal.Instance();

            frm_rel.MdiParent = this;
            frm_rel.Show();
        }
Пример #3
0
 private void FRM_Relatorio_Mensal_FormClosed(object sender, FormClosedEventArgs e)
 {
     instance = null;
 }