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