Пример #1
0
        public MasterModuleProcess(ICoreManager manager)
        {
            _manager = manager;

            _masterViewModel = new MasterModuleViewModel(_manager, this);
            View             = new ScadaPanelView(_masterViewModel);

            RemoveScadaPanelCommand = new RelayCommand(() => {
                _manager.RemoveScadaModule(this);
                Dispose();
            });

            Identifier = _manager.GenerateMasterModuleIdentifier();
        }
 public ScadaPanelView(MasterModuleViewModel jakasKlasa)
 {
     InitializeComponent();
     DataContext = jakasKlasa;
 }