예제 #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;
        }
예제 #5
0
        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;
        }