Пример #1
0
 public void Learn(int track)
 {
     if (duplicate)
     {
         AdvancesTrack = AdvancesTrack.Copy();
         duplicate     = false;
     }
     BackTrack = new ScheduleStack();
     AdvancesTrack.Push(track);
 }
Пример #2
0
 public void RollBack()
 {
     if (duplicate)
     {
         AdvancesTrack = AdvancesTrack.Copy();
         BackTrack     = BackTrack.Copy();
         duplicate     = false;
     }
     BackTrack.Push(AdvancesTrack.Pop());
 }