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