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))); }
public void ToggleWhichUserColor() { switch (WhichUserColor) { case WhichUserColor.Primary: WhichUserColor = WhichUserColor.Secondary; break; case WhichUserColor.Secondary: WhichUserColor = WhichUserColor.Primary; break; default: throw new InvalidEnumArgumentException(); } }
public WhichUserColorWrapper(WhichUserColor whichUserColor) { this.whichUserColor = whichUserColor; }