public SceneStateViewModel(SceneState sceneState, SceneStatesViewModel sceneStates)
        {
            _sceneState  = sceneState;
            _sceneStates = sceneStates;

            InitialiseSceneStateViewModel();
        }
示例#2
0
 private void InitialiseSceneViewModel()
 {
     Name                     = _scene.Name.Value;
     Description              = _scene.Description.Value;
     IconStyle                = _scene.IconStyle.Value;
     IconLocation             = _scene.IconLocation.Value;
     Categories               = new ObservableCollection <string>(_scene.Categories);
     _brightness              = _scene.SceneBrightness.Value;
     _hsbStates               = new SceneStatesViewModel(_scene, SceneType.HSB, _connection);
     _colourTemperatureStates = new SceneStatesViewModel(_scene, SceneType.ColourTemperature, _connection);
     _imageStates             = new SceneStatesViewModel(_scene, SceneType.Image, _connection);
 }