Ejemplo n.º 1
0
 public override void Redo(ref MokkanList list)
 {
     list = listAfter.Clone();
 }
Ejemplo n.º 2
0
 // Call this function AFTER operation.
 public void NewState(MokkanList mokkanList)
 {
     // Keep objects state after operation.
     listAfter = mokkanList.Clone();
 }
Ejemplo n.º 3
0
 public override void Undo(ref MokkanList list)
 {
     list = listBefore.Clone();
 }
Ejemplo n.º 4
0
 // Create this command BEFORE operation.
 public CommandChange(MokkanList mokkanList)
 {
     // Keep objects state before operation.
     listBefore = mokkanList.Clone();
 }