Example #1
0
        //
        // Constructor - Must be public for COM registration!
        //
        public Rotator()
        {
            myPyxis = new OptecPyxis();
            // Setup the Event Logger (User should manually edit XML file to change level.)

            EventLogger.LoggingLevel = myPyxis.LoggerTraceLevel;
        }
 public InstanceSetupForm(OptecPyxis myPyxis, Form setupDialogForm)
 {
     InitializeComponent();
     SetupDialogBtn.Visible = true;
     this.myPyxis = myPyxis;
     this.setupDialogForm = setupDialogForm;
 }
        public SetupDialogForm(OptecPyxis somePyxis)
        {
            InitializeComponent();
            myPyxis = somePyxis;
            myPyxis.MotionStarted += new EventHandler(OptecPyxis_MotionStarted);
            myPyxis.MotionCompleted += new EventHandler(OptecPyxis_MotionCompleted);
            myPyxis.ErrorOccurred += new EventHandler(OptecPyxis_ErrorCodeReceived);
            myPyxis.ConnectionEstablished += new EventHandler(OptecPyxis_ConnectionEstablished);
            myPyxis.ConnectionTerminated += new EventHandler(OptecPyxis_ConnectionTerminated);
            myPyxis.MotionHalted += new EventHandler(OptecPyxis_MotionHalted);

            myNewVersionChecker.NewVersionDetected += new EventHandler(myNewVersionChecker_NewVersionDetected);
        }
 public PyxisSettings(OptecPyxis.DeviceTypes type)
     : base("Pyxis")
 {
     ReloadSettings(type);
 }
 public void ReloadSettings(OptecPyxis.DeviceTypes type)
 {
     deviceType = type;
     skyPAOffset = double.Parse(GetPropertyFromXml(XmlPropNames.SkyPAOffset.ToString(), "0"), CultureInfo.InvariantCulture);
     string stepTimeString = GetPropertyFromXml(XmlPropNames.StepTime.ToString(), "Default");
     if (stepTimeString == "Default")
     {
         stepTimeIsDefault = true;
     }
     else
     {
         stepTimeIsDefault = false;
         stepTime = int.Parse(stepTimeString);
     }
 }
 public InstanceSetupForm(OptecPyxis myPyxis)
 {
     InitializeComponent();
     this.myPyxis = myPyxis;
 }
Example #7
0
 public PyxisPropertyGrid(OptecPyxis somePyxis)
 {
     myPyxis = somePyxis;
     if (myPyxis.CurrentDeviceState != OptecPyxis.DeviceStates.Connected)
     {
         throw new ApplicationException("You must connect to the Pyxis before you can access its settings.");
     }
 }
 public AdvancedSettingsForm(OptecPyxis somePyxis)
 {
     InitializeComponent();
     myPyxis = somePyxis;
 }