context: using System;
  using System.Drawing;
  using System.Collections;
  using System.ComponentModel;
  using System.Windows.Forms;
  using OpenDentBusiness;
  using OpenDental.UI;
  
  namespace OpenDental{
  ///<summary></summary>
  	public class FormImagingSetup:System.Windows.Forms.Form {
  		private OpenDental.UI.Button butOK;
  		private OpenDental.UI.Button butCancel;
  		private System.Windows.Forms.Label label12;
  		private System.ComponentModel.Container components = null;
  		private System.Windows.Forms.GroupBox groupBox1;
  		private System.Windows.Forms.GroupBox groupBox2;
  		private System.Windows.Forms.Label label25;
  		private System.Windows.Forms.GroupBox groupBox3;
  		private System.Windows.Forms.Label label37;
  		private ContrWindowingSlider slider;
  		private Label label1;
  		private OpenDental.UI.Button butMounts;
  		private GroupBox groupBox4;
  		private Label label2;
  		private NumericUpDown upDownExposure;
  		private NumericUpDown upDownPort;
  		private Label label4;
  		private Label label3;
  		private ValidNum textScanDocQuality;
  		private ComboBox comboType;
  		private ValidNum textScanDocResolution;
  		private Label label6;
  		private Label label5;
  		private UI.Button butSetScanner;
  		private CheckBox checkScanDocSelectSource;
  		private CheckBox checkScanDocDuplex;
  		private Label label7;
  		private CheckBox checkScanDocGrayscale;
  		private RadioButton radioScanDocUseOptionsBelow;
  		private RadioButton radioScanDocShowOptions;
  		private GroupBox groupScanningOptions;
  		private Label label8;
  		private CheckBox checkBinned;
  		//private ComputerPref computerPrefs;
  
  		///<summary></summary>
  		public FormImagingSetup(){
  			InitializeComponent();
  			//too many labels to use Lan.F()
  			Lan.C(this, new System.Windows.Forms.Control[]
  			{
  				this,
  				this.groupBox1,
  				this.groupBox2,
  				this.groupBox3,
  				this.label1,
  				this.label2,
  				this.label3,
  				this.label4,
  				this.label5,
  				this.label6,
  				this.label7,
  				this.label12,
  				this.label25,
  				this.label37
  			});
  			Lan.C("All", new System.Windows.Forms.Control[] {
  				butOK,
  				butCancel,
  			});
  		}
  
  		///<summary></summary>
  		protected override void Dispose( bool disposing ){
  			if( disposing ){
  				if(components != null){
  					components.Dispose();
  				}
  			}
  			base.Dispose( disposing );
  		}
  
  		#region Windows Form Designer generated code
  		/// <summary>
  		/// Required method for Designer support - do not modify
  		/// the contents of this method with the code editor.
  		/// </summary>
  		private void InitializeComponent()
  		{
  			System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormImagingSetup));
  			this.label12 = new System.Windows.Forms.Label();
  			this.groupBox1 = new System.Windows.Forms.GroupBox();
  			this.radioScanDocUseOptionsBelow = new System.Windows.Forms.RadioButton();
  			this.radioScanDocShowOptions = new System.Windows.Forms.RadioButton();
  			this.groupScanningOptions = new System.Windows.Forms.GroupBox();
  			this.label8 = new System.Windows.Forms.Label();
  			this.checkScanDocDuplex = new System.Windows.Forms.CheckBox();
  			this.label5 = new System.Windows.Forms.Label();
  			this.label6 = new System.Windows.Forms.Label();
  			this.textScanDocResolution = new OpenDental.ValidNum();
  			this.checkScanDocGrayscale = new System.Windows.Forms.CheckBox();
  			this.checkScanDocSelectSource = new System.Windows.Forms.CheckBox();
  			this.label7 = new System.Windows.Forms.Label();
  			this.textScanDocQuality = new OpenDental.ValidNum();
  			this.groupBox2 = new System.Windows.Forms.GroupBox();
  			this.label1 = new System.Windows.Forms.Label();
  			this.label25 = new System.Windows.Forms.Label();
  			this.slider = new OpenDental.UI.ContrWindowingSlider();
  			this.groupBox3 = new System.Windows.Forms.GroupBox();
  			this.label37 = new System.Windows.Forms.Label();
  			this.groupBox4 = new System.Windows.Forms.GroupBox();
  			this.checkBinned = new System.Windows.Forms.CheckBox();
  			this.comboType = new System.Windows.Forms.ComboBox();
  			this.upDownPort = new System.Windows.Forms.NumericUpDown();
  			this.label4 = new System.Windows.Forms.Label();
  			this.label3 = new System.Windows.Forms.Label();
  			this.label2 = new System.Windows.Forms.Label();
  			this.upDownExposure = new System.Windows.Forms.NumericUpDown();
  			this.butSetScanner = new OpenDental.UI.Button();
  			this.butMounts = new OpenDental.UI.Button();
  			this.butCancel = new OpenDental.UI.Button();
  			this.butOK = new OpenDental.UI.Button();
  			this.groupBox1.SuspendLayout();
  			this.groupScanningOptions.SuspendLayout();
  			this.groupBox2.SuspendLayout();
  			this.groupBox3.SuspendLayout();
  			this.groupBox4.SuspendLayout();
  			((System.ComponentModel.ISupportInitialize)(this.upDownPort)).BeginInit();
  			((System.ComponentModel.ISupportInitialize)(this.upDownExposure)).BeginInit();
  			this.SuspendLayout();
  			// 
  			// label12
  			// 
  			this.label12.Location = new System.Drawing.Point(17, 42);
  			this.label12.Name = "label12";
  			this.label12.Size = new System.Drawing.Size(254, 15);
  			this.label12.TabIndex = 14;
  			this.label12.Text = "JPEG Compression - Quality After Scanning";
  			this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
  			// 
  			// groupBox1
  			// 
  			this.groupBox1.Controls.Add(this.radioScanDocUseOptionsBelow);
  			this.groupBox1.Controls.Add(this.radioScanDocShowOptions);
  			this.groupBox1.Controls.Add(this.groupScanningOptions);
  			this.groupBox1.Controls.Add(this.checkScanDocSelectSource);
  			this.groupBox1.Controls.Add(this.label7);
  			this.groupBox1.Controls.Add(this.textScanDocQuality);
  			this.groupBox1.Controls.Add(this.label12);
  			this.groupBox1.FlatStyle = System.Windows.Forms.FlatStyle.System;
  			this.groupBox1.Location = new System.Drawing.Point(20, 45);
  			this.groupBox1.Name = "groupBox1";
  			this.groupBox1.Size = new System.Drawing.Size(622, 197);
  			this.groupBox1.TabIndex = 17;
  			this.groupBox1.TabStop = false;
  			this.groupBox1.Text = "Documents - Settings apply only to this workstation";
  			// 
  			// radioScanDocUseOptionsBelow
  			// 
  			this.radioScanDocUseOptionsBelow.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
  			this.radioScanDocUseOptionsBelow.Location = new System.Drawing.Point(85, 81);
  			this.radioScanDocUseOptionsBelow.Name = "radioScanDocUseOptionsBelow";
  			this.radioScanDocUseOptionsBelow.Size = new System.Drawing.Size(202, 18);
  			this.radioScanDocUseOptionsBelow.TabIndex = 26;
  			this.radioScanDocUseOptionsBelow.TabStop = true;
  			this.radioScanDocUseOptionsBelow.Text = "Use the Options Below";
  			this.radioScanDocUseOptionsBelow.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
  			this.radioScanDocUseOptionsBelow.UseVisualStyleBackColor = true;
  			// 
  			// radioScanDocShowOptions
  			// 
  			this.radioScanDocShowOptions.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
  			this.radioScanDocShowOptions.Location = new System.Drawing.Point(67, 63);
  			this.radioScanDocShowOptions.Name = "radioScanDocShowOptions";
  			this.radioScanDocShowOptions.Size = new System.Drawing.Size(220, 18);
  			this.radioScanDocShowOptions.TabIndex = 25;
  			this.radioScanDocShowOptions.TabStop = true;
  			this.radioScanDocShowOptions.Text = "Show Scanner Options Window";
  			this.radioScanDocShowOptions.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
  			this.radioScanDocShowOptions.UseVisualStyleBackColor = true;
  			this.radioScanDocShowOptions.CheckedChanged += new System.EventHandler(this.radioScanDocShowOptions_CheckedChanged);
  			// 
  			// groupScanningOptions
  			// 
  			this.groupScanningOptions.Controls.Add(this.label8);
  			this.groupScanningOptions.Controls.Add(this.checkScanDocDuplex);
  			this.groupScanningOptions.Controls.Add(this.label5);
  			this.groupScanningOptions.Controls.Add(this.label6);
  			this.groupScanningOptions.Controls.Add(this.textScanDocResolution);
  			this.groupScanningOptions.Controls.Add(this.checkScanDocGrayscale);
  			this.groupScanningOptions.Location = new System.Drawing.Point(32, 100);
  			this.groupScanningOptions.Name = "groupScanningOptions";
  			this.groupScanningOptions.Size = new System.Drawing.Size(584, 90);
  			this.groupScanningOptions.TabIndex = 24;
  			this.groupScanningOptions.TabStop = false;
  			this.groupScanningOptions.Text = "Scanning Options";
  			// 
  			// label8
  			// 
  			this.label8.Location = new System.Drawing.Point(260, 9);
  			this.label8.Name = "label8";
  			this.label8.Size = new System.Drawing.Size(260, 34);
  			this.label8.TabIndex = 23;
  			this.label8.Text = "If this setting causes your scanner to malfunction, use the \"Show Scanner Options" +
      " Window\" instead";
  			this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
  			// 
  			// checkScanDocDuplex
  			// 
  			this.checkScanDocDuplex.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
  			this.checkScanDocDuplex.Location = new System.Drawing.Point(9, 19);
  			this.checkScanDocDuplex.Name = "checkScanDocDuplex";
  			this.checkScanDocDuplex.Size = new System.Drawing.Size(247, 18);
  			this.checkScanDocDuplex.TabIndex = 21;
  			this.checkScanDocDuplex.Text = "Multipage Scans Duplex (both sides)";
  			this.checkScanDocDuplex.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
  			this.checkScanDocDuplex.UseVisualStyleBackColor = true;
  			// 
  			// label5
  			// 
  			this.label5.Location = new System.Drawing.Point(52, 66);
  			this.label5.Name = "label5";
  			this.label5.Size = new System.Drawing.Size(186, 19);
  			this.label5.TabIndex = 15;
  			this.label5.Text = "Resolution";
  			this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
  			// 
  			// label6
  			// 
  			this.label6.Location = new System.Drawing.Point(313, 65);
  			this.label6.Name = "label6";
  			this.label6.Size = new System.Drawing.Size(180, 19);
  			this.label6.TabIndex = 15;
  			this.label6.Text = "> 50. Typical setting: 150 dpi";
  			this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
  			// 
  			// textScanDocResolution
  			// 
  			this.textScanDocResolution.Location = new System.Drawing.Point(241, 65);
  			this.textScanDocResolution.MaxVal = 1000;
  			this.textScanDocResolution.MinVal = 51;
  			this.textScanDocResolution.Name = "textScanDocResolution";
  			this.textScanDocResolution.Size = new System.Drawing.Size(68, 20);
  			this.textScanDocResolution.TabIndex = 20;
  			// 
  			// checkScanDocGrayscale
  			// 
  			this.checkScanDocGrayscale.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
  			this.checkScanDocGrayscale.Location = new System.Drawing.Point(110, 47);
  			this.checkScanDocGrayscale.Name = "checkScanDocGrayscale";
  			this.checkScanDocGrayscale.Size = new System.Drawing.Size(146, 18);
  			this.checkScanDocGrayscale.TabIndex = 22;
  			this.checkScanDocGrayscale.Text = "Grayscale";
  			this.checkScanDocGrayscale.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
  			this.checkScanDocGrayscale.UseVisualStyleBackColor = true;
  			// 
  			// checkScanDocSelectSource
  			// 
  			this.checkScanDocSelectSource.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
  			this.checkScanDocSelectSource.Location = new System.Drawing.Point(32, 19);
  			this.checkScanDocSelectSource.Name = "checkScanDocSelectSource";
  			this.checkScanDocSelectSource.Size = new System.Drawing.Size(256, 18);
  			this.checkScanDocSelectSource.TabIndex = 23;
  			this.checkScanDocSelectSource.Text = "Show Select Scanner Window";
  			this.checkScanDocSelectSource.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
  			this.checkScanDocSelectSource.UseVisualStyleBackColor = true;
  			// 
  			// label7
  			// 
  			this.label7.Location = new System.Drawing.Point(345, 42);
  			this.label7.Name = "label7";
  			this.label7.Size = new System.Drawing.Size(246, 15);
  			this.label7.TabIndex = 23;
  			this.label7.Text = "0-100. 100=No compression.  Typical setting: 40";
  			this.label7.TextAlign = System.Drawing.ContentAlignment.BottomLeft;
  			// 
  			// textScanDocQuality
  			// 
  			this.textScanDocQuality.Location = new System.Drawing.Point(273, 40);
  			this.textScanDocQuality.MaxVal = 100;
  			this.textScanDocQuality.MinVal = 0;
  			this.textScanDocQuality.Name = "textScanDocQuality";
  			this.textScanDocQuality.Size = new System.Drawing.Size(68, 20);
  			this.textScanDocQuality.TabIndex = 20;
  			// 
  			// groupBox2
  			// 
  			this.groupBox2.Controls.Add(this.label1);
  			this.groupBox2.Controls.Add(this.label25);
  			this.groupBox2.Controls.Add(this.slider);
  			this.groupBox2.FlatStyle = System.Windows.Forms.FlatStyle.System;
  			this.groupBox2.Location = new System.Drawing.Point(20, 251);
  			this.groupBox2.Name = "groupBox2";
  			this.groupBox2.Size = new System.Drawing.Size(484, 96);
  			this.groupBox2.TabIndex = 18;
  			this.groupBox2.TabStop = false;
  			this.groupBox2.Text = "Radiographs";
  			// 
  			// label1
  			// 
  			this.label1.Location = new System.Drawing.Point(13, 14);
  			this.label1.Name = "label1";
  			this.label1.Size = new System.Drawing.Size(425, 19);
  			this.label1.TabIndex = 22;
  			this.label1.Text = "Default pixel windowing for new radiographs, both scanned and digital";
  			this.label1.TextAlign = System.Drawing.ContentAlignment.BottomLeft;
  			// 
  			// label25
  			// 
  			this.label25.Location = new System.Drawing.Point(13, 65);
  			this.label25.Name = "label25";
  			this.label25.Size = new System.Drawing.Size(465, 24);
  			this.label25.TabIndex = 15;
  			this.label25.Text = "Suggested setting for scanning panos is Greyscale, 300 dpi.  For BWs, 400dpi.";
  			// 
  			// slider
  			// 
  			this.slider.Location = new System.Drawing.Point(14, 38);
  			this.slider.MaxVal = 128;
  			this.slider.Name = "slider";
  			this.slider.Size = new System.Drawing.Size(194, 14);
  			this.slider.TabIndex = 21;
  			// 
  			// groupBox3
  			// 
  			this.groupBox3.Controls.Add(this.label37);
  			this.groupBox3.FlatStyle = System.Windows.Forms.FlatStyle.System;
  			this.groupBox3.Location = new System.Drawing.Point(20, 353);
  			this.groupBox3.Name = "groupBox3";
  			this.groupBox3.Size = new System.Drawing.Size(484, 43);
  			this.groupBox3.TabIndex = 19;
  			this.groupBox3.TabStop = false;
  			this.groupBox3.Text = "Photos";
  			// 
  			// label37
  			// 
  			this.label37.Location = new System.Drawing.Point(14, 18);
  			this.label37.Name = "label37";
  			this.label37.Size = new System.Drawing.Size(464, 20);
  			this.label37.TabIndex = 15;
  			this.label37.Text = "Suggested setting for scanning photos is Color, 300 dpi.";
  			// 
  			// groupBox4
  			// 
  			this.groupBox4.Controls.Add(this.checkBinned);
  			this.groupBox4.Controls.Add(this.comboType);
  			this.groupBox4.Controls.Add(this.upDownPort);
  			this.groupBox4.Controls.Add(this.label4);
  			this.groupBox4.Controls.Add(this.label3);
  			this.groupBox4.Controls.Add(this.label2);
  			this.groupBox4.Controls.Add(this.upDownExposure);
  			this.groupBox4.Location = new System.Drawing.Point(21, 402);
  			this.groupBox4.Name = "groupBox4";
  			this.groupBox4.Size = new System.Drawing.Size(484, 137);
  			this.groupBox4.TabIndex = 21;
  			this.groupBox4.TabStop = false;
  			this.groupBox4.Text = "Suni Imaging - Settings apply only to this workstation";
  			// 
  			// checkBinned
  			// 
  			this.checkBinned.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
  			this.checkBinned.Location = new System.Drawing.Point(81, 96);
  			this.checkBinned.Name = "checkBinned";
  			this.checkBinned.Size = new System.Drawing.Size(206, 17);
  			this.checkBinned.TabIndex = 8;
  			this.checkBinned.Text = "Binned (not normally used)";
  			this.checkBinned.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
  			this.checkBinned.UseVisualStyleBackColor = true;
  			// 
  			// comboType
  			// 
  			this.comboType.FormattingEnabled = true;
  			this.comboType.Location = new System.Drawing.Point(273, 69);
  			this.comboType.Name = "comboType";
  			this.comboType.Size = new System.Drawing.Size(37, 21);
  			this.comboType.TabIndex = 7;
  			this.comboType.Text = "D";
  			// 
  			// upDownPort
  			// 
  			this.upDownPort.Location = new System.Drawing.Point(273, 43);
  			this.upDownPort.Maximum = new decimal(new int[] {
              1,
              0,
              0,
              0});
  			this.upDownPort.Name = "upDownPort";
  			this.upDownPort.Size = new System.Drawing.Size(33, 20);
  			this.upDownPort.TabIndex = 6;
  			// 
  			// label4
  			// 
  			this.label4.Location = new System.Drawing.Point(28, 45);
  			this.label4.Name = "label4";
  			this.label4.Size = new System.Drawing.Size(239, 13);
  			this.label4.TabIndex = 5;
  
gt: 			this.label4.Text = "Sensor Port (place where sensor connects)";