public static FRM_Contas Instance() { if (instance == null) { instance = new FRM_Contas(); } return(instance); }
private void mContas_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_Contas form_contas = new FRM_Contas(); form_contas.MdiParent = this; form_contas.Show(); }