public TelescopeCapabilities(TelescopeCapabilities other)
        {
            this.DeviceManager = other.DeviceManager;
            this.Exceptions    = other.Exceptions.Clone();

            this._canFindHome              = other._canFindHome;
            this._canPark                  = other._canPark;
            this._canPulseGuide            = other._canPulseGuide;
            this._canSetDeclinationRate    = other._canSetDeclinationRate;
            this._canSetGuideRates         = other._canSetGuideRates;
            this._canSetPark               = other._canSetPark;
            this._canSetPierSide           = other._canSetPierSide;
            this._canSetRightAscensionRate = other._canSetRightAscensionRate;
            this._canSetTracking           = other._canSetTracking;
            this._canSlew                  = other._canSlew;
            this._canSlewAltAz             = other._canSlewAltAz;
            this._canSlewAltAzAsync        = other._canSlewAltAzAsync;
            this._canSlewAsync             = other._canSlewAsync;
            this._canSync                  = other._canSync;
            this._canSyncAltAz             = other._canSyncAltAz;
            this._canUnpark                = other._canUnpark;
            this._canMovePrimaryAxis       = other._canMovePrimaryAxis;
            this._canMoveSecondaryAxis     = other._canMoveSecondaryAxis;
            this._canMoveTertiaryAxis      = other._canMoveTertiaryAxis;
            this._primaryAxisRates         = other._primaryAxisRates;
            this._secondaryAxisRates       = other._secondaryAxisRates;
            this._tertiaryAxisRates        = other._tertiaryAxisRates;
        }
		private void SetCapabilities( TelescopeCapabilities capabilities )
		{
			// Make sure that we update the Capabilities on the U/I thread.

			Task.Factory.StartNew( () =>
			{
				Capabilities = capabilities;
				UpdateCanDoDirectSlew();
			}, CancellationToken.None, TaskCreationOptions.None, Globals.UISyncContext );
		}
Beispiel #3
0
        private void SetCapabilities(TelescopeCapabilities capabilities)
        {
            // Make sure that we update the Paremeters on the U/I thread.

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