Пример #1
0
        /// <summary>
        /// Changes the cursor to match the currently lifted piece, as long as a piece has been lifted
        /// </summary>
        private void setCursorToLiftedPiece()
        {
            if (this.liftedPiece != null)
            {
                System.Windows.Resources.StreamResourceInfo pieceCURStream = Application.GetResourceStream(
                    new Uri(FileLocations.getCURLocation(this.liftedPiece.getType(), this.liftedPiece.getColour()), UriKind.Relative));

                this.Cursor = new System.Windows.Input.Cursor(pieceCURStream.Stream);
            }
        }