Ejemplo n.º 1
0
 public FocuserParameters(FocuserParameters other)
 {
     this.Absolute          = other.Absolute;
     this.Description       = other.Description;
     this.DriverInfo        = other.DriverInfo;
     this.DriverVersion     = other.DriverVersion;
     this.InterfaceVersion  = other.InterfaceVersion;
     this.MaxIncrement      = other.MaxIncrement;
     this.MaxStep           = other.MaxStep;
     this.StepSize          = other.StepSize;
     this.SupportedActions  = other.SupportedActions;
     this.TempCompAvailable = other.TempCompAvailable;
 }
        private void SetParameters(FocuserParameters parameters)
        {
            // Make sure that we update the Paremeters on the U/I thread.

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