public Focuser() { // TODO Implement your additional construction here #if DEBUG MessageBox.Show("Creating"); #endif myFocuser = OptecFocuser.Instance; }
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; }
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; } }
public SettingsForm(OptecFocuser myFoc) { InitializeComponent(); myFocuser = myFoc; }
public SetupDialog2(OptecFocuser myFoc) { InitializeComponent(); myFocuser = myFoc; }