Пример #1
0
        public void Execute(object parameter)
        {
            Road road = parameter as Road;

            PredicatePreviousState = road;
            PredicatePostState     = Reciever.AddNewRoad(road);
            PrimaryEntityCommandManager.Add(new AddRoadCommand(this));
        }
Пример #2
0
 public void Redo()
 {
     PredicatePostState = Reciever.AddNewRoad(PredicatePreviousState);
 }