context: using System;
  using System.Drawing;
  using System.Collections;
  using System.Collections.Generic;
  using System.ComponentModel;
  using System.Text;
  using System.Windows.Forms;
  using OpenDentBusiness;
  using OpenDental.UI;
  
  namespace OpenDental{
  ///<summary></summary>
  	public class FormRecallSetup : System.Windows.Forms.Form{
  		private OpenDental.UI.Button butCancel;
  		private OpenDental.UI.Button butOK;
  		private System.Windows.Forms.Label label8;
  		private System.Windows.Forms.TextBox textPostcardsPerSheet;
  		private System.Windows.Forms.CheckBox checkReturnAdd;
  		private GroupBox groupBox2;
  		private ValidDouble textDown;
  		private Label label12;
  		private ValidDouble textRight;
  		private Label label13;
  		private CheckBox checkGroupFamilies;
  		private Label label14;
  		private Label label15;
  		private GroupBox groupBox3;
  		private Label label25;
  		private ComboBox comboStatusMailedRecall;
  		private ComboBox comboStatusEmailedRecall;
  		private Label label26;
  		private ListBox listTypes;
  		private Label label1;
  		private ValidNumber textDaysPast;
  		private ValidNumber textDaysFuture;
  		private GroupBox groupBox1;
  		private ValidNumber textDaysSecondReminder;
  		private ValidNumber textDaysFirstReminder;
  		private Label label2;
  		private Label label3;
  		private OpenDental.UI.ODGrid gridMain;
  		private System.ComponentModel.Container components = null;
  		private ValidNumber textMaxReminders;
  		private Label label4;
  		private ComboBox comboStatusEmailedConfirm;
  		private Label label5;
  		private GroupBox groupBox4;
  		private RadioButton radioUseEmailFalse;
  		private RadioButton radioUseEmailTrue;
  		private Label label6;
  		private ComboBox comboStatusTextMessagedConfirm;
  		private RadioButton radioExcludeFutureNo;
  		private RadioButton radioExcludeFutureYes;
  		private bool changed;
  
  		///<summary></summary>
  		public FormRecallSetup(){
  			InitializeComponent();
  			Lan.F(this);
  			//Lan.C(this, new System.Windows.Forms.Control[] {
  				//textBox1,
  				//textBox6
  			//});
  		}
  
  		///<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(FormRecallSetup));
  			this.textPostcardsPerSheet = new System.Windows.Forms.TextBox();
  			this.label8 = new System.Windows.Forms.Label();
  			this.checkReturnAdd = new System.Windows.Forms.CheckBox();
  			this.groupBox2 = new System.Windows.Forms.GroupBox();
  			this.textDown = new OpenDental.ValidDouble();
  			this.label12 = new System.Windows.Forms.Label();
  			this.textRight = new OpenDental.ValidDouble();
  			this.label13 = new System.Windows.Forms.Label();
  			this.checkGroupFamilies = new System.Windows.Forms.CheckBox();
  			this.label14 = new System.Windows.Forms.Label();
  			this.label15 = new System.Windows.Forms.Label();
  			this.groupBox3 = new System.Windows.Forms.GroupBox();
  			this.textDaysFuture = new OpenDental.ValidNumber();
  			this.textDaysPast = new OpenDental.ValidNumber();
  			this.label25 = new System.Windows.Forms.Label();
  			this.comboStatusMailedRecall = new System.Windows.Forms.ComboBox();
  			this.comboStatusEmailedRecall = new System.Windows.Forms.ComboBox();
  			this.label26 = new System.Windows.Forms.Label();
  			this.listTypes = new System.Windows.Forms.ListBox();
  			this.label1 = new System.Windows.Forms.Label();
  			this.groupBox1 = new System.Windows.Forms.GroupBox();
  			this.textMaxReminders = new OpenDental.ValidNumber();
  			this.label4 = new System.Windows.Forms.Label();
  			this.textDaysSecondReminder = new OpenDental.ValidNumber();
  			this.textDaysFirstReminder = new OpenDental.ValidNumber();
  			this.label2 = new System.Windows.Forms.Label();
  			this.label3 = new System.Windows.Forms.Label();
  			this.gridMain = new OpenDental.UI.ODGrid();
  			this.butOK = new OpenDental.UI.Button();
  			this.butCancel = new OpenDental.UI.Button();
  			this.comboStatusEmailedConfirm = new System.Windows.Forms.ComboBox();
  			this.label5 = new System.Windows.Forms.Label();
  			this.groupBox4 = new System.Windows.Forms.GroupBox();
  			this.radioUseEmailFalse = new System.Windows.Forms.RadioButton();
  			this.radioUseEmailTrue = new System.Windows.Forms.RadioButton();
  			this.label6 = new System.Windows.Forms.Label();
  			this.comboStatusTextMessagedConfirm = new System.Windows.Forms.ComboBox();
  			this.radioExcludeFutureNo = new System.Windows.Forms.RadioButton();
  			this.radioExcludeFutureYes = new System.Windows.Forms.RadioButton();
  			this.groupBox2.SuspendLayout();
  			this.groupBox3.SuspendLayout();
  			this.groupBox1.SuspendLayout();
  			this.groupBox4.SuspendLayout();
  			this.SuspendLayout();
  			// 
  			// textPostcardsPerSheet
  			// 
  			this.textPostcardsPerSheet.Location = new System.Drawing.Point(194,513);
  			this.textPostcardsPerSheet.Name = "textPostcardsPerSheet";
  			this.textPostcardsPerSheet.Size = new System.Drawing.Size(34,20);
  			this.textPostcardsPerSheet.TabIndex = 18;
  			// 
  			// label8
  			// 
  			this.label8.Location = new System.Drawing.Point(18,516);
  			this.label8.Name = "label8";
  			this.label8.Size = new System.Drawing.Size(176,16);
  			this.label8.TabIndex = 19;
  			this.label8.Text = "Postcards per sheet (1,3,or 4)";
  			this.label8.TextAlign = System.Drawing.ContentAlignment.TopRight;
  			// 
  			// checkReturnAdd
  			// 
  			this.checkReturnAdd.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
  			this.checkReturnAdd.FlatStyle = System.Windows.Forms.FlatStyle.System;
  			this.checkReturnAdd.Location = new System.Drawing.Point(60,534);
  			this.checkReturnAdd.Name = "checkReturnAdd";
  			this.checkReturnAdd.Size = new System.Drawing.Size(147,19);
  			this.checkReturnAdd.TabIndex = 43;
  			this.checkReturnAdd.Text = "Show return address";
  			this.checkReturnAdd.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
  			// 
  			// groupBox2
  			// 
  			this.groupBox2.Controls.Add(this.textDown);
  			this.groupBox2.Controls.Add(this.label12);
  			this.groupBox2.Controls.Add(this.textRight);
  			this.groupBox2.Controls.Add(this.label13);
  			this.groupBox2.Location = new System.Drawing.Point(687,428);
  			this.groupBox2.Name = "groupBox2";
  			this.groupBox2.Size = new System.Drawing.Size(191,67);
  			this.groupBox2.TabIndex = 48;
  			this.groupBox2.TabStop = false;
  			this.groupBox2.Text = "Adjust Postcard Position in Inches";
  			// 
  			// textDown
  			// 
  			this.textDown.Location = new System.Drawing.Point(110,43);
  			this.textDown.Name = "textDown";
  			this.textDown.Size = new System.Drawing.Size(73,20);
  			this.textDown.TabIndex = 6;
  			// 
  			// label12
  			// 
  			this.label12.Location = new System.Drawing.Point(48,42);
  			this.label12.Name = "label12";
  			this.label12.Size = new System.Drawing.Size(60,20);
  			this.label12.TabIndex = 5;
  			this.label12.Text = "Down";
  			this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
  			// 
  			// textRight
  			// 
  			this.textRight.Location = new System.Drawing.Point(110,18);
  			this.textRight.Name = "textRight";
  			this.textRight.Size = new System.Drawing.Size(73,20);
  			this.textRight.TabIndex = 4;
  			// 
  			// label13
  			// 
  			this.label13.Location = new System.Drawing.Point(48,17);
  			this.label13.Name = "label13";
  			this.label13.Size = new System.Drawing.Size(60,20);
  			this.label13.TabIndex = 4;
  			this.label13.Text = "Right";
  			this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
  			// 
  			// checkGroupFamilies
  			// 
  			this.checkGroupFamilies.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
  			this.checkGroupFamilies.Location = new System.Drawing.Point(85,15);
  			this.checkGroupFamilies.Name = "checkGroupFamilies";
  			this.checkGroupFamilies.Size = new System.Drawing.Size(121,18);
  			this.checkGroupFamilies.TabIndex = 49;
  			this.checkGroupFamilies.Text = "Group Families";
  			this.checkGroupFamilies.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
  			this.checkGroupFamilies.UseVisualStyleBackColor = true;
  			// 
  			// label14
  			// 
  			this.label14.Location = new System.Drawing.Point(6,32);
  			this.label14.Name = "label14";
  			this.label14.Size = new System.Drawing.Size(184,20);
  			this.label14.TabIndex = 50;
  			this.label14.Text = "Days Past (e.g. 1095, blank, etc)";
  			this.label14.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
  			// 
  			// label15
  			// 
  			this.label15.Location = new System.Drawing.Point(9,53);
  			this.label15.Name = "label15";
  			this.label15.Size = new System.Drawing.Size(181,20);
  			this.label15.TabIndex = 52;
  			this.label15.Text = "Days Future (e.g. 7)";
  			this.label15.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
  			// 
  			// groupBox3
  			// 
  			this.groupBox3.Controls.Add(this.textDaysFuture);
  			this.groupBox3.Controls.Add(this.textDaysPast);
  			this.groupBox3.Controls.Add(this.checkGroupFamilies);
  			this.groupBox3.Controls.Add(this.label14);
  			this.groupBox3.Controls.Add(this.label15);
  			this.groupBox3.Location = new System.Drawing.Point(415,428);
  			this.groupBox3.Name = "groupBox3";
  			this.groupBox3.Size = new System.Drawing.Size(253,78);
  			this.groupBox3.TabIndex = 54;
  			this.groupBox3.TabStop = false;
  			this.groupBox3.Text = "Recall List Default View";
  			// 
  			// textDaysFuture
  			// 
  			this.textDaysFuture.Location = new System.Drawing.Point(192,54);
  			this.textDaysFuture.MaxVal = 10000;
  			this.textDaysFuture.MinVal = 0;
  			this.textDaysFuture.Name = "textDaysFuture";
  			this.textDaysFuture.Size = new System.Drawing.Size(53,20);
  			this.textDaysFuture.TabIndex = 66;
  			// 
  			// textDaysPast
  			// 
  			this.textDaysPast.Location = new System.Drawing.Point(192,32);
  			this.textDaysPast.MaxVal = 10000;
  			this.textDaysPast.MinVal = 0;
  			this.textDaysPast.Name = "textDaysPast";
  			this.textDaysPast.Size = new System.Drawing.Size(53,20);
  			this.textDaysPast.TabIndex = 65;
  			// 
  			// label25
  			// 
  			this.label25.Location = new System.Drawing.Point(35,427);
  			this.label25.Name = "label25";
  			this.label25.Size = new System.Drawing.Size(157,16);
  			this.label25.TabIndex = 57;
  			this.label25.Text = "Status for mailed recall";
  			this.label25.TextAlign = System.Drawing.ContentAlignment.TopRight;
  			// 
  			// comboStatusMailedRecall
  			// 
  			this.comboStatusMailedRecall.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
  			this.comboStatusMailedRecall.FormattingEnabled = true;
  			this.comboStatusMailedRecall.Location = new System.Drawing.Point(194,423);
  			this.comboStatusMailedRecall.MaxDropDownItems = 20;
  			this.comboStatusMailedRecall.Name = "comboStatusMailedRecall";
  			this.comboStatusMailedRecall.Size = new System.Drawing.Size(206,21);
  			this.comboStatusMailedRecall.TabIndex = 58;
  			// 
  			// comboStatusEmailedRecall
  			// 
  			this.comboStatusEmailedRecall.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
  			this.comboStatusEmailedRecall.FormattingEnabled = true;
  			this.comboStatusEmailedRecall.Location = new System.Drawing.Point(194,445);
  			this.comboStatusEmailedRecall.MaxDropDownItems = 20;
  			this.comboStatusEmailedRecall.Name = "comboStatusEmailedRecall";
  			this.comboStatusEmailedRecall.Size = new System.Drawing.Size(206,21);
  			this.comboStatusEmailedRecall.TabIndex = 60;
  			// 
  			// label26
  			// 
  			this.label26.Location = new System.Drawing.Point(35,449);
  			this.label26.Name = "label26";
  			this.label26.Size = new System.Drawing.Size(157,16);
  			this.label26.TabIndex = 59;
  			this.label26.Text = "Status for e-mailed recall";
  			this.label26.TextAlign = System.Drawing.ContentAlignment.TopRight;
  			// 
  			// listTypes
  			// 
  			this.listTypes.FormattingEnabled = true;
  			this.listTypes.Location = new System.Drawing.Point(194,552);
  			this.listTypes.Name = "listTypes";
  			this.listTypes.SelectionMode = System.Windows.Forms.SelectionMode.MultiExtended;
  			this.listTypes.Size = new System.Drawing.Size(120,82);
  			this.listTypes.TabIndex = 64;
  			// 
  			// label1
  			// 
  			this.label1.Location = new System.Drawing.Point(37,552);
  			this.label1.Name = "label1";
  			this.label1.Size = new System.Drawing.Size(157,65);
  			this.label1.TabIndex = 63;
  			this.label1.Text = "Types to show in recall list (typically just prophy, perio, and user-added types)" +
      "";
  			this.label1.TextAlign = System.Drawing.ContentAlignment.TopRight;
  			// 
  			// groupBox1
  			// 
  			this.groupBox1.Controls.Add(this.textMaxReminders);
  			this.groupBox1.Controls.Add(this.label4);
  			this.groupBox1.Controls.Add(this.textDaysSecondReminder);
  			this.groupBox1.Controls.Add(this.textDaysFirstReminder);
  			this.groupBox1.Controls.Add(this.label2);
  			this.groupBox1.Controls.Add(this.label3);
  			this.groupBox1.Location = new System.Drawing.Point(415,546);
  			this.groupBox1.Name = "groupBox1";
  			this.groupBox1.Size = new System.Drawing.Size(253,86);
  			this.groupBox1.TabIndex = 65;
  			this.groupBox1.TabStop = false;
  			this.groupBox1.Text = "Also show in list if # of days since";
  			// 
  			// textMaxReminders
  			// 
  			this.textMaxReminders.Location = new System.Drawing.Point(192,60);
  			this.textMaxReminders.MaxVal = 10000;
  			this.textMaxReminders.MinVal = 0;
  			this.textMaxReminders.Name = "textMaxReminders";
  			this.textMaxReminders.Size = new System.Drawing.Size(53,20);
  			this.textMaxReminders.TabIndex = 68;
  			// 
  			// label4
  			// 
  			this.label4.Location = new System.Drawing.Point(44,59);
  			this.label4.Name = "label4";
  			this.label4.Size = new System.Drawing.Size(146,20);
  			this.label4.TabIndex = 67;
  			this.label4.Text = "Max # Reminders (e.g. 4)";
  			this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
  			// 
  			// textDaysSecondReminder
  			// 
  			this.textDaysSecondReminder.Location = new System.Drawing.Point(192,38);
  			this.textDaysSecondReminder.MaxVal = 10000;
  			this.textDaysSecondReminder.MinVal = 0;
  			this.textDaysSecondReminder.Name = "textDaysSecondReminder";
  			this.textDaysSecondReminder.Size = new System.Drawing.Size(53,20);
  			this.textDaysSecondReminder.TabIndex = 66;
  			// 
  			// textDaysFirstReminder
  			// 
  			this.textDaysFirstReminder.Location = new System.Drawing.Point(192,16);
  			this.textDaysFirstReminder.MaxVal = 10000;
  			this.textDaysFirstReminder.MinVal = 0;
  			this.textDaysFirstReminder.Name = "textDaysFirstReminder";
  			this.textDaysFirstReminder.Size = new System.Drawing.Size(53,20);
  			this.textDaysFirstReminder.TabIndex = 65;
  			// 
  			// label2
  			// 
  			this.label2.Location = new System.Drawing.Point(89,15);
  			this.label2.Name = "label2";
  			this.label2.Size = new System.Drawing.Size(101,20);
  			this.label2.TabIndex = 50;
  			this.label2.Text = "Initial Reminder";
  			this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
  			// 
  			// label3
  			// 
  			this.label3.Location = new System.Drawing.Point(44,37);
  			this.label3.Name = "label3";
  			this.label3.Size = new System.Drawing.Size(146,20);
  			this.label3.TabIndex = 52;
  			this.label3.Text = "Second (or more) Reminder";
  			this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
  			// 
  			// gridMain
  			// 
  			this.gridMain.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
              | System.Windows.Forms.AnchorStyles.Right)));
  			this.gridMain.HScrollVisible = false;
  			this.gridMain.Location = new System.Drawing.Point(9,8);
  			this.gridMain.Name = "gridMain";
  			this.gridMain.ScrollValue = 0;
  			this.gridMain.Size = new System.Drawing.Size(869,411);
  			this.gridMain.TabIndex = 67;
  			this.gridMain.Title = "Messages";
  			this.gridMain.TranslationName = "TableRecallMsgs";
  			this.gridMain.CellDoubleClick += new OpenDental.UI.ODGridClickEventHandler(this.gridMain_CellDoubleClick);
  			// 
  			// butOK
  			// 
  			this.butOK.AdjustImageLocation = new System.Drawing.Point(0,0);
  			this.butOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
  			this.butOK.Autosize = true;
  			this.butOK.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle;
  			this.butOK.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver;
  			this.butOK.CornerRadius = 4F;
  			this.butOK.Location = new System.Drawing.Point(787,570);
  			this.butOK.Name = "butOK";
  			this.butOK.Size = new System.Drawing.Size(75,24);
  			this.butOK.TabIndex = 3;
  			this.butOK.Text = "&OK";
  			this.butOK.Click += new System.EventHandler(this.butOK_Click);
  			// 
  			// butCancel
  			// 
  			this.butCancel.AdjustImageLocation = new System.Drawing.Point(0,0);
  			this.butCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
  			this.butCancel.Autosize = true;
  			this.butCancel.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle;
  			this.butCancel.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver;
  			this.butCancel.CornerRadius = 4F;
  			this.butCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
  			this.butCancel.Location = new System.Drawing.Point(787,608);
  			this.butCancel.Name = "butCancel";
  			this.butCancel.Size = new System.Drawing.Size(75,24);
  			this.butCancel.TabIndex = 4;
  			this.butCancel.Text = "&Cancel";
  			this.butCancel.Click += new System.EventHandler(this.butCancel_Click);
  			// 
  			// comboStatusEmailedConfirm
  			// 
  			this.comboStatusEmailedConfirm.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
  			this.comboStatusEmailedConfirm.FormattingEnabled = true;
  			this.comboStatusEmailedConfirm.Location = new System.Drawing.Point(194,467);
  			this.comboStatusEmailedConfirm.MaxDropDownItems = 20;
  			this.comboStatusEmailedConfirm.Name = "comboStatusEmailedConfirm";
  			this.comboStatusEmailedConfirm.Size = new System.Drawing.Size(206,21);
  			this.comboStatusEmailedConfirm.TabIndex = 69;
  			// 
  			// label5
  			// 
  
gt: 			this.label5.Location = new System.Drawing.Point(3,471);