Ejemplo n.º 1
0
        public void SetCustomControls(CustomControls newControls)
        {
            customControlsMode = customControlsMode != newControls ? newControls : CustomControls.None;

            switch (customControlsMode)
            {
            case CustomControls.Sell: Cursors.SetSellCursor(); break;

            case CustomControls.Repair: Cursors.SetRepairCursor(); break;

            case CustomControls.None:
                Cursors.lockCursorChange = false;
                Cursors.SetDefaultCursor();
                break;
            }
        }