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 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 TempCompSetupForm(ASCOM.DeviceInterface.IFocuserV2 foc) { InitializeComponent(); myFocuser = foc; }