Example #1
0
        private void LoadCursorGraphics()
        {
            if (_cursorType == Settings.Instance.CursorType)
            {
                return;
            }

            _cursorType = Settings.Instance.CursorType;

            if (_cursorType == CursorType.Default && !FileSystem.DataFilesExist(FileSystem.MouseCursorFiles))
            {
                _cursorType = CursorType.Builtin;
            }

            _cursorPointer = Icons.Cursor(MouseCursor.Pointer, (_cursorType == CursorType.Builtin));
            _cursorGoto    = Icons.Cursor(MouseCursor.Goto, (_cursorType == CursorType.Builtin));
            _mouseCursor   = MouseCursor.None;

            _cursorPointer.Palette[0] = new Color(0, 0, 0, 0);
            _cursorGoto.Palette[0]    = new Color(0, 0, 0, 0);

            OnMouseEnter(this, EventArgs.Empty);
        }