コード例 #1
0
ファイル: Driver.cs プロジェクト: OptecInc/TCF-Software--PC-
        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;
 }