internal void ShowForm(IGenesisGUIForm frm) { this.Cursor = Cursors.WaitCursor; ((Form)frm).MdiParent = this; ((Form)frm).Visible = false; frm.GUIParent = this; frm.Id = g.MaxFormId; frm.SetDescription(); g.MaxFormId++; g.FormsAdd(frm); g.ActiveForm = frm; ((Form)frm).Show(); if (g.Forms.Count == 1) { ((Form)frm).WindowState = FormWindowState.Minimized; ((Form)frm).WindowState = FormWindowState.Maximized; } //RefreshOpenWindowsList(); this.Cursor = Cursors.Default; }
public static int FormsAdd(IGenesisGUIForm frm) { _lstForms.Add(frm); return(_lstForms.Count); }