private void HandleInkChanged(object sender, Strokes changed, bool adding) { using (Synchronizer.Lock(this.Undo.SyncRoot)) { // Create an IUndoer that will re-add or re-delete the copied strokes. IUndoer undoer = new InkUndoer(this, changed, adding); this.Undo.Push(undoer); } }
private void HandleInkChanged(object sender, Strokes changed, bool adding) { using(Synchronizer.Lock(this.Undo.SyncRoot)) { // Create an IUndoer that will re-add or re-delete the copied strokes. IUndoer undoer = new InkUndoer(this, changed, adding); this.Undo.Push(undoer); } }