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

            if (mes != null)
            {
                LoadFrom(mes);
            }
        }
コード例 #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));
            }
        }
コード例 #3
0
 public bool IsViewModelOf(MES mes)
 {
     return(mes == _mes);
 }