示例#1
0
文件: Program.cs 项目: tekkydave/AAF2
 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();
        // }
 }
示例#3
0
        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);
            }
        }
示例#5
0
 public AscomCamera(ASCOM.DeviceInterface.ICameraV2 camera)
 {
     _camera = camera;
     Initialize();
 }
 public ControlBox(ASCOM.Arduino.Telescope scope)
 {
     this.telescope = scope;
     InitializeComponent();
 }
示例#7
0
 public RateV3Proxy(ASCOM.DeviceInterface.IRate rate)
 {
     _rateImplementation = rate;
 }
示例#8
0
 public AxisRatesV3Proxy(ASCOM.DeviceInterface.IAxisRates impl)
 {
     _axisRatesImplementation = impl;
 }
示例#9
0
 public TrackingRateV3Proxy(ASCOM.DeviceInterface.ITrackingRates trackingRates)
 {
     _trackingRatesImplementation = trackingRates;
 }
 public TempCompSetupForm(ASCOM.DeviceInterface.IFocuserV2 foc)
 {
     InitializeComponent();
     myFocuser = foc;
 }