public string Action(string actionName, string actionParameters) { if (MyDriverType == 0) { return(MySSRotator.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"); } }
private void button3_Click(object sender, EventArgs e) { driver.Action("Home", ""); }