public ModulesTabFasenLijstViewModel(ModulesTabViewModel modulestabvm)
        {
            foreach (FaseCyclusModel fcm in modulestabvm.Controller.Fasen)
            {
                Fasen.Add(new FaseCyclusModuleViewModel(fcm, null));
            }

            MessageManager.Instance.Subscribe(this, new Action <FasenChangedMessage>(OnFasenChanged));
        }
Ejemplo n.º 2
0
        public ModuleMolenViewModel(ControllerModel controller, ModulesTabViewModel modulestabvm)
        {
            _Controller   = controller;
            _ModulesTabVM = modulestabvm;
            _ModuleMolen  = _Controller.ModuleMolen;

            foreach (ModuleModel mm in _ModuleMolen.Modules)
            {
                ModuleViewModel mvm = new ModuleViewModel(_Controller, mm);
                Modules.Add(mvm);
            }

            Modules.CollectionChanged += Modules_CollectionChanged;
        }