コード例 #1
0
 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();
 }
コード例 #2
0
ファイル: Program.cs プロジェクト: jpmac26/LazyShell
 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();
 }