Example #1
0
        public MESViewModel(MES mes)
        {
            AddMESEngineCommand    = new DelegateCommand(AddEngine);
            RemoveMESEngineCommand = new DelegateCommand <MESEngineViewModel>(RemoveEngine);

            if (mes != null)
            {
                LoadFrom(mes);
            }
        }
Example #2
0
        override public void LoadFrom(Subsystem mes)
        {
            _mes = (MES)mes;

            Engines = new ObservableCollection <MESEngineViewModel>();
            foreach (MESEngine engine in _mes.engines)
            {
                Engines.Add(new MESEngineViewModel(engine));
            }
        }
Example #3
0
 public bool IsViewModelOf(MES mes)
 {
     return(mes == _mes);
 }