public DomeParameters(DomeParameters other) { this.Description = other.Description; this.DriverInfo = other.DriverInfo; this.DriverVersion = other.DriverVersion; this.InterfaceVersion = other.InterfaceVersion; this.SupportedActions = other.SupportedActions; }
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); } }
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); }
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); }