private void accTreeOptionsFrmToolStripMenuItem_Click(object sender, EventArgs e) { if (FrmAccTreeOptions.IsDisposed) { FrmAccTreeOptions = new AccTreeOptionsFrm(); FrmAccTreeOptions.MdiParent = this; FrmAccTreeOptions.Show(); } else { if (FrmAccTreeOptions.Visible) { FrmAccTreeOptions.WindowState = FormWindowState.Normal; FrmAccTreeOptions.Focus(); } else { FrmAccTreeOptions.MdiParent = this; FrmAccTreeOptions.Show(); } } FrmAccTreeOptions.Icon = FXFW.SqlDB.MakeIcon(global::SchoolStore2.Properties.Resources.accTreeOptionsFrm, 16, false); }