Exemplo n.º 1
0
        public ScenePropertiesViewModel(
            TreeViewViewModel treeParent,
            CompoundObjectViewModel parentVm,
            MainViewModel mainVm,
            SceneProperties modelObject,
            bool enabled = true) :
            base(treeParent, parentVm, mainVm, enabled)
        {
            ModelObject = modelObject;

            SelectedSceneTypeIndex = SceneTypes.IndexOf(ModelObject.SceneType);
        }
Exemplo n.º 2
0
        public ScenePropertiesViewModel(
            TreeViewViewModel treeParent,
            CompoundObjectViewModel parentVm,
            MainViewModel mainVm,
            SceneProperties modelObject,
            bool enabled = true) :
            base(treeParent, parentVm, mainVm, enabled)
        {
            ModelObject = modelObject;

            foreach (string s in ModelObject.States)
            {
                StateViewModel svm = new StateViewModel(this, parentVm, mainVm, this, s);
                States.Add(svm);
            }
        }