Пример #1
0
 public ConditionalLightViewModel(Level3ViewModel parent, ConditionalDirections direction, ConditionalLights light, ActuatorState state)
 {
     _parent            = parent;
     ConditionalCommand = new ConditionalLightCommand(direction, light, state);
     _parent.AddToConditionalCommandList(ConditionalCommand);
     ChangeState = new RelayCommand(changeState);
 }
Пример #2
0
 public ConditionalLightViewModel()
 {
     _parent            = new Level3ViewModel();
     ConditionalCommand = new ConditionalLightCommand(ConditionalDirections.Stop, ConditionalLights.Red, ActuatorState.Off);
     _parent.AddToConditionalCommandList(ConditionalCommand);
     ChangeState = new RelayCommand(changeState);
 }