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