public void Execute(object parameter) { Road road = parameter as Road; PredicatePreviousState = road; PredicatePostState = Reciever.AddNewRoad(road); PrimaryEntityCommandManager.Add(new AddRoadCommand(this)); }
public void Redo() { PredicatePostState = Reciever.AddNewRoad(PredicatePreviousState); }