Example #1
0
        protected override CloneStampToolChanges CreateChanges(IEnumerable <KeyValuePair <string, object> > drawingSettingsValues, IEnumerable <BrushInputPoint> inputPoints, MouseButtonState rightButtonState)
        {
            WhichUserColor whichUserColor   = (rightButtonState == MouseButtonState.Pressed) ? WhichUserColor.Secondary : WhichUserColor.Primary;
            int            anchorLayerIndex = this.GetAnchorLayerIndex();
            PointDouble    pt = (PointDouble) - this.GetStaticData().anchorOffset;

            return(new CloneStampToolChanges(drawingSettingsValues, whichUserColor, inputPoints, anchorLayerIndex, PointDouble.Truncate(pt)));
        }
Example #2
0
        public void ToggleWhichUserColor()
        {
            switch (WhichUserColor)
            {
                case WhichUserColor.Primary:
                    WhichUserColor = WhichUserColor.Secondary;
                    break;

                case WhichUserColor.Secondary:
                    WhichUserColor = WhichUserColor.Primary;
                    break;

                default:
                    throw new InvalidEnumArgumentException();
            }
        }
Example #3
0
 public WhichUserColorWrapper(WhichUserColor whichUserColor)
 {
     this.whichUserColor = whichUserColor;
 }
Example #4
0
 public WhichUserColorWrapper(WhichUserColor whichUserColor)
 {
     this.whichUserColor = whichUserColor;
 }