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

            if (mes != null)
            {
                LoadFrom(mes);
            }
        }
Esempio n. 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));
            }
        }
Esempio n. 3
0
 public bool IsViewModelOf(MES mes)
 {
     return(mes == _mes);
 }