private void LoadAccountOverviewForm() { //foreach (MDIBase bf in MDIForms) // if (bf != null) bf.Hide(); if (MDI_Account == null) { MDI_Account = new AccountForm(currentFormId++); MDI_Account.Text = "Account overview"; MDI_Account.MdiParent = this; //MDI_PDF.TopLevel = false; MDIForms[5] = MDI_Account; } MDIForms[5].Show(); }
private void UnloadAccountOverviewForm() { MDI_Account = null; MDIForms[5] = null; }