public ResizeOperation(ICanvasItem child, IPoint handlePoint, ISnappingEngine snappingEngine) { Child = child; HandlePoint = handlePoint; SetCanResize(child, handlePoint); Opposite = HandlePoint.GetOpposite(child.Rect().MiddlePoint()); SnappingEngine = snappingEngine; this.recordingScope = RecordingServices.DefaultRecorder.OpenScope(string.Format( "Resize {0}", this.child.GetName() )); }
public ResizeOperation(ICanvasItem child, IPoint handlePoint, ISnappingEngine snappingEngine) { Child = child; HandlePoint = handlePoint; SetCanResize(child, handlePoint); Opposite = HandlePoint.GetOpposite(child.Rect().MiddlePoint()); SnappingEngine = snappingEngine; this.recordingScope = RecordingServices.DefaultRecorder.OpenScope(string.Format("Resize {0}", this.child.GetName())); }
public ResizeOperation(ICanvasItem child, IPoint handlePoint, ISnappingEngine snappingEngine) { Child = child; HandlePoint = handlePoint; SetCanResize(child, handlePoint); Opposite = HandlePoint.GetOpposite(child.Rect().MiddlePoint()); SnappingEngine = snappingEngine; this.recordingScope = CanvasModelItem.Recorder.StartAtomicScope("Resize", false); }
protected virtual void OnDragEnd() { if (this.dragRecordingScope != null) { this.dragRecordingScope.Dispose(); this.dragRecordingScope = null; } var handler = DragEnd; if (handler != null) { handler(this, EventArgs.Empty); } }
private void StartRecorderOperation() { string operationName = string.Format( "Move {0}", this.ItemToDrag.GetName() ); this.dragRecordingScope = RecordingServices.DefaultRecorder.OpenScope(operationName); }
protected virtual void OnDragEnd() { if (this.dragRecordingScope != null) { this.dragRecordingScope.Dispose(); this.dragRecordingScope = null; } var handler = DragEnd; if (handler != null) handler(this, EventArgs.Empty); }
private void StartRecorderOperation() { string operationName = string.Format("Move {0}", this.ItemToDrag.GetName()); this.dragRecordingScope = RecordingServices.DefaultRecorder.OpenScope(operationName); }
private void StartRecorderOperation() { // TODO: Generate a better operation name. We would need to enrich the model, for instance with an object name. const string operationName = "Move"; this.dragRecordingScope = CanvasModelItem.Recorder.StartAtomicScope(operationName); }