Exemplo n.º 1
0
        public UndoManager(Layers layerList)
        {
            layers = layerList;

            ClearHistory();
        }
Exemplo n.º 2
0
 public override void Redo(Layers list)
 {
     // Replace all objects in the list with objects from listAfter
     ReplaceObjects(list[activeLayer].Graphics, listAfter);
 }
Exemplo n.º 3
0
 // Call this function AFTER operation.
 public void NewState(Layers layerList)
 {
     // Keep objects state after operation.
     FillList(layerList[activeLayer].Graphics, ref listAfter);
 }
Exemplo n.º 4
0
 public override void Undo(Layers list)
 {
     // Replace all objects in the list with objects from listBefore
     ReplaceObjects(list[activeLayer].Graphics, listBefore);
 }
Exemplo n.º 5
0
 // Create this command BEFORE operation.
 public CommandChangeState(Layers layerList)
 {
     // Keep objects state before operation.
     activeLayer = layerList.ActiveLayerIndex;
     FillList(layerList[activeLayer].Graphics, ref listBefore);
 }