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); }
public ConditionalLightViewModel() { _parent = new Level3ViewModel(); ConditionalCommand = new ConditionalLightCommand(ConditionalDirections.Stop, ConditionalLights.Red, ActuatorState.Off); _parent.AddToConditionalCommandList(ConditionalCommand); ChangeState = new RelayCommand(changeState); }
public ConditionalRgbViewModel(Level3ViewModel parent, ConditionalDirections direction, RGBPreDefinedColors state) { _parent = parent; ConditionalCommand = new ConditionalRGBCommand(direction, state); _parent.AddToConditionalRGBCommandList(ConditionalCommand); ChangeState = new RelayCommand(changeState); }
public ConditionalRgbViewModel() { _parent = new Level3ViewModel(); ConditionalCommand = new ConditionalRGBCommand(ConditionalDirections.Stop, RGBPreDefinedColors.OFF); _parent.AddToConditionalRGBCommandList(ConditionalCommand); ChangeState = new RelayCommand(changeState); }
public Level3View() { InitializeComponent(); DataContext = _ViewModel = new Level3ViewModel(); addMovementCmnds(MovementCommandsCount); addConditionalCmnds(); RoboFigureContainer.Children.Add(new RobotFigureView(new RobotFigureViewModel(PathForLevel.Level3))); }
internal ConditionalLightView(Level3ViewModel dataContext, ConditionalDirections direction, ConditionalLights light, ActuatorState state) { InitializeComponent(); DataContext = new ConditionalLightViewModel(dataContext, direction, light, state); }
internal ConditionalRgbView(Level3ViewModel dataContext, ConditionalDirections direction, RGBPreDefinedColors state) { InitializeComponent(); DataContext = new ConditionalRgbViewModel(dataContext, direction, state); }