public void CreateFormationsWindow() { if (Formations == null || !Formations.Visible) { Cursor.Current = Cursors.WaitCursor; Formations = new Formations.OwnerForm(); if (DockEditors) { Do.AddControl(MainForm.PanelForms, Formations); } else { Formations.Show(); } loadedForms.Add(Formations); Cursor.Current = Cursors.Arrow; } Formations.KeyDown += new KeyEventHandler(editor_KeyDown); Formations.BringToFront(); }