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