Beispiel #1
0
 internal ConditionalRgbView(Level3ViewModel dataContext, ConditionalDirections direction, RGBPreDefinedColors state)
 {
     InitializeComponent();
     DataContext = new ConditionalRgbViewModel(dataContext, direction, state);
 }
Beispiel #2
0
 public ConditionalRgbViewModel(Level3ViewModel parent, ConditionalDirections direction, RGBPreDefinedColors state)
 {
     _parent            = parent;
     ConditionalCommand = new ConditionalRGBCommand(direction, state);
     _parent.AddToConditionalRGBCommandList(ConditionalCommand);
     ChangeState = new RelayCommand(changeState);
 }