Ejemplo n.º 1
0
 private void OnPulseCompleted(ObservatoryControllerCallbackArgs args)
 {
     DisableEnableControls(true);
 }
Ejemplo n.º 2
0
 private void ObservatoryController_SlewCompleted(ObservatoryControllerCallbackArgs arg)
 {
     m_PulseFinished = true;
 }
Ejemplo n.º 3
0
        private void UpdateASCOMControlsState(ObservatoryControllerCallbackArgs args)
        {
            btnTestFocuserConnection.Enabled = !string.IsNullOrEmpty(tbxFocuser.Text);
            btnTestTelescopeConnection.Enabled = !string.IsNullOrEmpty(tbxTelescope.Text);

            if (ObservatoryController.IsConnectedToTelescope())
            {
                btnSelectTelescope.Enabled = false;
                btnTestTelescopeConnection.Enabled = false;
                btnClearTelescope.Enabled = false;
                btnConfigureTelescope.Enabled = false;
                btnDisconnectTelescope.Visible = true;
                btnDisconnectTelescope.Enabled = true;
            }
            else
            {
                btnSelectTelescope.Enabled = true;
                btnTestTelescopeConnection.Enabled = true;
                btnClearTelescope.Enabled = true;
                btnConfigureTelescope.Enabled = !string.IsNullOrEmpty(tbxTelescope.Text);
                btnDisconnectTelescope.Visible = false;
            }

            if (ObservatoryController.IsConnectedToFocuser())
            {
                btnSelectFocuser.Enabled = false;
                btnTestFocuserConnection.Enabled = false;
                btnClearFocuser.Enabled = false;
                btnConfigureFocuser.Enabled = false;
                btnDisconnectFocuser.Visible = true;
                btnDisconnectFocuser.Enabled = true;
            }
            else
            {
                btnSelectFocuser.Enabled = true;
                btnTestFocuserConnection.Enabled = true;
                btnClearFocuser.Enabled = true;
                btnConfigureFocuser.Enabled = !string.IsNullOrEmpty(tbxFocuser.Text);
                btnDisconnectFocuser.Visible = false;
            }

            if (ObservatoryController.IsConnectedToObservatory())
            {
                cbxUseAppDomainIsolation.Enabled = false;
            }
            else
            {
                cbxUseAppDomainIsolation.Enabled = true;
            }
        }