Пример #1
0
        public bool?ConfigArithParams(CorrectionParams correction, PostProcParams postProc)
        {
            if (null == client)
            {
                return(false);
            }

            ConfigArithParamsRequest msg = new ConfigArithParamsRequest()
            {
                Correction        = correction,
                PostProc          = postProc,
                UseCorrParams     = 1,
                UsePostProcParams = 1,
            };

            return(client.Send(msg) > 0);
        }
Пример #2
0
 public ConfigArithParamsViewModel(IInitArithParams initArithParams, ICommunication communication, IRegionManager regionManager, IEventAggregator eventAggregator) : base(regionManager, eventAggregator)
 {
     corrParams     = initArithParams.InitCorrection();
     postProcParams = initArithParams.InitPostProc();
     this.comm      = communication;
     this.EventAggregator.GetEvent <ConfigArithParamsRequestEvent>().Subscribe(ConfigArithParams, ThreadOption.PublisherThread, true);
     this.EventAggregator.GetEvent <ConfigCameraAEChangedEvent>().Subscribe(enable => AE = enable, ThreadOption.BackgroundThread, true);
     this.EventAggregator.GetEvent <UserAccessChangedEvent>().Subscribe(type =>
     {
         if (type == UserAccessType.Expert)
         {
             IsExpert = true;
         }
         else
         {
             IsExpert = false;
         }
     }, true);
 }