public DomeParameters(DomeParameters other)
 {
     this.Description      = other.Description;
     this.DriverInfo       = other.DriverInfo;
     this.DriverVersion    = other.DriverVersion;
     this.InterfaceVersion = other.InterfaceVersion;
     this.SupportedActions = other.SupportedActions;
 }
Example #2
0
 private void InvalidateDeviceData(DeviceDisconnectedMessage action)
 {
     if (action.DeviceType == DeviceTypeEnum.Dome)
     {
         Task.Factory.StartNew(() =>
         {
             Status       = null;
             Capabilities = null;
             Parameters   = null;
             IsSlaved     = false;
         }, CancellationToken.None, TaskCreationOptions.None, Globals.UISyncContext);
     }
 }
Example #3
0
        private void DomeParametersUpdated(DomeParametersUpdatedMessage action)
        {
            // Make sure that we update the Parameters on the U/I thread.

            Task.Factory.StartNew(() => Parameters = action.Parameters, CancellationToken.None, TaskCreationOptions.None, Globals.UISyncContext);
        }
Example #4
0
        private void SetParameters(DomeParameters parameters)
        {
            // Make sure that we update the Parameters on the U/I thread.

            Task.Factory.StartNew(() => Parameters = parameters, CancellationToken.None, TaskCreationOptions.None, Globals.UISyncContext);
        }