Пример #1
0
        private void pictureBoxDownArrow_Click(object sender, EventArgs e)
        {
            int numMoves = KeyboardUtilities.GetCurrentlyInputtedNumber() ?? 1;

            if (KeyboardUtilities.IsCtrlHeld())
            {
                numMoves = 0;
            }
            mapTab.flowLayoutPanelMapTrackers.MoveDownControl(this, numMoves);
        }
Пример #2
0
        private void OnSlotClick(object sender, EventArgs e)
        {
            // Make sure the tab has loaded
            if (mainForm.tabControlMain.SelectedTab == null)
            {
                return;
            }

            ObjectSlot selectedSlot = sender as ObjectSlot;

            selectedSlot.Focus();

            bool isCtrlKeyHeld  = KeyboardUtilities.IsCtrlHeld();
            bool isShiftKeyHeld = KeyboardUtilities.IsShiftHeld();
            bool isAltKeyHeld   = KeyboardUtilities.IsAltHeld();
            int? numberHeld     = KeyboardUtilities.GetCurrentlyInputtedNumber();

            DoSlotClickUsingInput(selectedSlot, isCtrlKeyHeld, isShiftKeyHeld, isAltKeyHeld, numberHeld);
        }