예제 #1
0
        public Focuser()
        {
            // TODO Implement your additional construction here
            #if DEBUG
            MessageBox.Show("Creating");
            #endif

            myFocuser = OptecFocuser.Instance;
        }
예제 #2
0
 public AboutBox1(OptecFocuser myFoc)
 {
     InitializeComponent();
     this.Text = String.Format("About {0} ", AssemblyTitle);
     this.labelProductName.Text = AssemblyProduct;
     this.labelVersion.Text = String.Format("Version {0}", AssemblyVersion);
     this.labelCopyright.Text = AssemblyCopyright;
     this.labelCompanyName.Text = AssemblyCompany;
     this.textBoxDescription.Text = AssemblyDescription;
     myFocuser = myFoc;
 }
예제 #3
0
 public AddOffsetForm(FormFunctions f, OptecFocuser myFocuser )
 {
     InitializeComponent();
     thisFunction = f;
     if (f == FormFunctions.AbsolutePresets)
     {
         this.Text = "Add Absolute Preset";
         this.Prompt_TB.Text = "Enter a name and value for a absolute focus preset to be added";
         this.Offset_NUD.Maximum = myFocuser.MaxSteps;
         this.Offset_NUD.Minimum = 1;
     }
     else
     {
         this.Text = "Add Focus Offset";
         this.Prompt_TB.Text = "Enter a name and value for the relative focus offset to be added";
         this.Offset_NUD.Maximum = myFocuser.MaxSteps;
         this.Offset_NUD.Minimum = -myFocuser.MaxSteps;
     }
 }
예제 #4
0
 public SettingsForm(OptecFocuser myFoc)
 {
     InitializeComponent();
     myFocuser = myFoc;
 }
예제 #5
0
 public SetupDialog2(OptecFocuser myFoc)
 {
     InitializeComponent();
     myFocuser = myFoc;
 }