示例#1
0
        public static DestructionHotkeysForm DestructionHotkeysForm(WarlockHotkeys keys)
        {
            if (destructionHotKeysForm != null && destructionHotKeysForm.IsDisposed)
            {
                destructionHotKeysForm = null;
            }

            return(destructionHotKeysForm ?? (destructionHotKeysForm = new DestructionHotkeysForm(keys)));
        }
示例#2
0
        public static DemonologyHotkeysForm DemonologyHotkeysForm(WarlockHotkeys hotkeys)
        {
            if (demonologyHotKeysForm != null && demonologyHotKeysForm.IsDisposed)
            {
                demonologyHotKeysForm = null;
            }

            return(demonologyHotKeysForm ?? (demonologyHotKeysForm = new DemonologyHotkeysForm(hotkeys)));
        }
示例#3
0
        public static AfflictionHotkeysForm AfflictionHotkeysForm(WarlockHotkeys keys)
        {
            if (afflictionHotkeysForm != null && afflictionHotkeysForm.IsDisposed)
            {
                afflictionHotkeysForm = null;
            }

            return(afflictionHotkeysForm ?? (afflictionHotkeysForm = new AfflictionHotkeysForm(keys)));
        }
示例#4
0
        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;
        }
示例#6
0
        public DestructionHotkeysForm(WarlockHotkeys keys)
        {
            InitializeComponent();

            destructionHotkeys = keys;
        }
示例#7
0
        public DemonologyHotkeysForm(WarlockHotkeys keys)
        {
            InitializeComponent();

            demonologyHotkeys = keys;
        }