Ejemplo n.º 1
0
 public SelectionMovedOrResizedCI(CommandStack commandStack, StrokeCollection selection, Rect newrect, Rect oldrect, int editingOperationCount)
     : base(commandStack)
 {
     _selection             = selection;
     _newrect               = newrect;
     _oldrect               = oldrect;
     _editingOperationCount = editingOperationCount;
 }
Ejemplo n.º 2
0
        public StrokesAddedOrRemovedCI(CommandStack commandStack, InkCanvasEditingMode editingMode, StrokeCollection added, StrokeCollection removed, int editingOperationCount)
            : base(commandStack)
        {
            _editingMode = editingMode;

            _added   = added;
            _removed = removed;

            _editingOperationCount = editingOperationCount;
        }
Ejemplo n.º 3
0
 protected CommandItem(CommandStack commandStack)
 {
     _commandStack = commandStack;
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Initialization.
 /// </summary>
 protected override void OnInitialized(EventArgs e)
 {
     base.OnInitialized(e);
     _cmdStack = new CommandStack(MyInkCanvas.Strokes);
 }