public static DestructionHotkeysForm DestructionHotkeysForm(WarlockHotkeys keys) { if (destructionHotKeysForm != null && destructionHotKeysForm.IsDisposed) { destructionHotKeysForm = null; } return(destructionHotKeysForm ?? (destructionHotKeysForm = new DestructionHotkeysForm(keys))); }
public static DemonologyHotkeysForm DemonologyHotkeysForm(WarlockHotkeys hotkeys) { if (demonologyHotKeysForm != null && demonologyHotKeysForm.IsDisposed) { demonologyHotKeysForm = null; } return(demonologyHotKeysForm ?? (demonologyHotKeysForm = new DemonologyHotkeysForm(hotkeys))); }
public static AfflictionHotkeysForm AfflictionHotkeysForm(WarlockHotkeys keys) { if (afflictionHotkeysForm != null && afflictionHotkeysForm.IsDisposed) { afflictionHotkeysForm = null; } return(afflictionHotkeysForm ?? (afflictionHotkeysForm = new AfflictionHotkeysForm(keys))); }
public AfflictionHotkeysForm(WarlockHotkeys keys) { InitializeComponent(); afflictionHotkeys = keys; // If the ability name column is entered, deseslect. Ability name doesn't have to be selected. abilitiesDataGridView.CellEnter += (sender, e) => { if (e.ColumnIndex == 0) { (sender as DataGridView).ClearSelection(); } }; abilitiesDataGridView.ClearSelection(); abilitiesDataGridView.KeyDown += AbilitiesDataGridView_KeyDown; abilitiesDataGridView.CellEnter += AbilitiesDataGridView_CellEnter; abilitiesDataGridView.CellLeave += AbilitiesDataGridView_CellLeave; }
public WarlockBaseForm() { InitializeComponent(); hotkeyList = new WarlockHotkeys(); FormClosed += WarlockBaseForm_FormClosed; // If the ability name column is entered, deseslect. Ability name doesn't have to be selected. abilitiesDataGridView.CellEnter += (sender, e) => { if (e.ColumnIndex == 0) { (sender as DataGridView).ClearSelection(); } }; abilitiesDataGridView.ClearSelection(); abilitiesDataGridView.KeyDown += AbilitiesDataGridView_KeyDown; abilitiesDataGridView.CellEnter += AbilitiesDataGridView_CellEnter; abilitiesDataGridView.CellLeave += AbilitiesDataGridView_CellLeave; }
public DestructionHotkeysForm(WarlockHotkeys keys) { InitializeComponent(); destructionHotkeys = keys; }
public DemonologyHotkeysForm(WarlockHotkeys keys) { InitializeComponent(); demonologyHotkeys = keys; }