Esempio n. 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);
 }
Esempio n. 2
0
 public ConditionalLightViewModel()
 {
     _parent            = new Level3ViewModel();
     ConditionalCommand = new ConditionalLightCommand(ConditionalDirections.Stop, ConditionalLights.Red, ActuatorState.Off);
     _parent.AddToConditionalCommandList(ConditionalCommand);
     ChangeState = new RelayCommand(changeState);
 }
Esempio n. 3
0
 public ConditionalRgbViewModel(Level3ViewModel parent, ConditionalDirections direction, RGBPreDefinedColors state)
 {
     _parent            = parent;
     ConditionalCommand = new ConditionalRGBCommand(direction, state);
     _parent.AddToConditionalRGBCommandList(ConditionalCommand);
     ChangeState = new RelayCommand(changeState);
 }
Esempio n. 4
0
 public ConditionalRgbViewModel()
 {
     _parent            = new Level3ViewModel();
     ConditionalCommand = new ConditionalRGBCommand(ConditionalDirections.Stop, RGBPreDefinedColors.OFF);
     _parent.AddToConditionalRGBCommandList(ConditionalCommand);
     ChangeState = new RelayCommand(changeState);
 }
Esempio n. 5
0
 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);
 }
Esempio n. 7
0
 internal ConditionalRgbView(Level3ViewModel dataContext, ConditionalDirections direction, RGBPreDefinedColors state)
 {
     InitializeComponent();
     DataContext = new ConditionalRgbViewModel(dataContext, direction, state);
 }