Exemplo n.º 1
0
 public string Action(string actionName, string actionParameters)
 {
     if (MyDriverType == 0)
     {
         return(MySSFocuser.Action(actionName, actionParameters));
     }
     else
     {
         LogMessage("", "Action {0}, parameters {1} not implemented", actionName, actionParameters);
         throw new ASCOM.ActionNotImplementedException("Action " + actionName + " is not implemented by this driver");
     }
 }
Exemplo n.º 2
0
 private void SetUIState()
 {
     buttonConnect.Enabled = !string.IsNullOrEmpty(Properties.Settings.Default.DriverId);
     buttonChoose.Enabled  = !IsConnected;
     buttonConnect.Text    = IsConnected ? "Disconnect" : "Connect";
     if (IsConnected)
     {
         textCurrentPos.Text = driver.Position.ToString();
         textMaxPos.Text     = driver.MaxStep.ToString();
         textMinPos.Text     = driver.Action("MinStep", "Get");
     }
 }