Пример #1
0
        public TheViewModel()
        {
            _stopwatch = new Stopwatch();
            _caliburn  = new Caliburn.Micro.EventAggregator();
            _caliburn.Subscribe(this);

            _prism = new Oneview.Client.Base.Events.EventAggregator();
            _prism.GetEvent <PrismEvent>().Subscribe(UpdateValue);
        }
Пример #2
0
        public async override Task Initialize()
        {
            _logger.Info("Initialize() of DemoModuleBViewModel called");

            DisplayName = "DemoModule B (" + ModuleKey + ")";

            await EnsureValidWcfClient();

            AlarmSummaryViewModel = _alarmManagementFactory.CreateAlarmSummaryViewModel(ModuleKey);

            _eventAggregator.Subscribe(this);
        }