private static void commandTest(ASCOM.DriverAccess.Focuser focuser, String s) { Console.WriteLine(); Console.WriteLine("--------- S T A R T -------------"); Console.WriteLine(" Sending: " + s); String r = focuser.CommandString(s, true); Console.WriteLine("Received: " + r); Console.WriteLine("------- F I N I S H -------------"); Console.WriteLine(); }
public NetworkConfigForm(ASCOM.DeviceInterface.IFocuserV2 foc) { InitializeComponent(); myFocuser = foc; //if(myFocuser.Action("GetWiFiAttachedState", "") != "True") //{ // MessageBox.Show("The device must be connected in order to change WiFi connection settings."); // this.Close(); // } }
public SetupDialog(externalCallType calledType_ext = externalCallType.switchCall, ASCOM.DeviceInterface.IDomeV2 domeDriver_ext = null) { CalledType = calledType_ext; domeDriver = domeDriver_ext; //Set language Thread.CurrentThread.CurrentUICulture = CultureInfo.GetCultureInfo(Switch.currentLang); Thread.CurrentThread.CurrentCulture = CultureInfo.GetCultureInfo(Switch.currentLang); InitializeComponent(); }
public SetupDialogForm(ASCOM.DeviceInterface.IFocuserV2 f, string uniqueDriverId, string syncUnits) { InitializeComponent(); SyncUnits = syncUnits; myFocuser = f; driverId = uniqueDriverId; NVC.NewVersionDetected += new EventHandler(NVC_NewVersionDetected); Utilities.Profile pro = new Utilities.Profile(); pro.DeviceType = "Focuser"; bool check = bool.Parse(pro.GetValue(driverId, "Check for Updates", "", true.ToString())); if (check) { NVC.CheckForNewVersion(System.Reflection.Assembly.GetExecutingAssembly(), "GeminiSoftware", false, Properties.Resources.FocusLynx); } }
public AscomCamera(ASCOM.DeviceInterface.ICameraV2 camera) { _camera = camera; Initialize(); }
public ControlBox(ASCOM.Arduino.Telescope scope) { this.telescope = scope; InitializeComponent(); }
public RateV3Proxy(ASCOM.DeviceInterface.IRate rate) { _rateImplementation = rate; }
public AxisRatesV3Proxy(ASCOM.DeviceInterface.IAxisRates impl) { _axisRatesImplementation = impl; }
public TrackingRateV3Proxy(ASCOM.DeviceInterface.ITrackingRates trackingRates) { _trackingRatesImplementation = trackingRates; }
public TempCompSetupForm(ASCOM.DeviceInterface.IFocuserV2 foc) { InitializeComponent(); myFocuser = foc; }