context: /*=============================================================================================================
  Open Dental GPL license Copyright (C) 2003  Jordan Sparks, DMD.  http://www.open-dent.com,  www.docsparks.com
  See header in FormOpenDental.cs for complete text.  Redistributions must retain this text.
  ===============================================================================================================*/
  using System;
  using System.Collections;
  using System.Collections.Generic;
  using System.ComponentModel;
  using System.Diagnostics;
  using System.Drawing;
  using System.Data;
  using System.Globalization;
  using System.IO;
  using System.Reflection;
  using System.Text.RegularExpressions;
  using System.Windows.Forms;
  using OpenDental.UI;
  using OpenDentBusiness;
  using CodeBase;
  using System.Threading;
  
  namespace OpenDental {
  
  	///<summary></summary>
  	public class ContrAccount:System.Windows.Forms.UserControl {
  		private System.Windows.Forms.Label labelFamFinancial;
  		private System.ComponentModel.IContainer components=null;// Required designer variable.
  		private System.Windows.Forms.Label labelUrgFinNote;
  		private OpenDental.ODtextBox textUrgFinNote;
  		private System.Windows.Forms.ContextMenu contextMenuIns;
  		private System.Windows.Forms.MenuItem menuInsOther;
  		private System.Windows.Forms.MenuItem menuInsPri;
  		private System.Windows.Forms.MenuItem menuInsSec;
  		private OpenDental.UI.ODToolBar ToolBarMain;
  		private System.Windows.Forms.ImageList imageListMain;
  		private System.Windows.Forms.Panel panelSplitter;
  		private OpenDental.ODtextBox textFinNotes;
  		private System.Windows.Forms.ContextMenu contextMenuStatement;
  		private System.Windows.Forms.MenuItem menuItemStatementWalkout;
  		private System.Windows.Forms.MenuItem menuItemStatementMore;
  		private OpenDental.UI.ODGrid gridComm;
  		private OpenDental.UI.ODGrid gridAcctPat;
  		private OpenDental.UI.ODGrid gridAccount;
  		private OpenDental.UI.ODGrid gridRepeat;
  		private System.Windows.Forms.MenuItem menuInsMedical;
  		private ContextMenu contextMenuRepeat;
  		private MenuItem menuItemRepeatStand;
  		private MenuItem menuItemRepeatEmail;
  		private Panel panelProgNotes;
  		private ODGrid gridProg;
  		private GroupBox groupBox6;
  		private CheckBox checkShowE;
  		private CheckBox checkShowR;
  		private CheckBox checkShowC;
  		private CheckBox checkShowTP;
  		private GroupBox groupBox7;
  		private CheckBox checkAppt;
  		private CheckBox checkLabCase;
  		private CheckBox checkRx;
  		private CheckBox checkComm;
  		private CheckBox checkNotes;
  		private OpenDental.UI.Button butShowAll;
  		private OpenDental.UI.Button butShowNone;
  		private CheckBox checkExtraNotes;
  		private CheckBox checkShowTeeth;
  		private CheckBox checkAudit;
  		private Panel panelAging;
  		private Label labelBalance;
  		private Label labelInsEst;
  		private Label labelTotal;
  		private Label label7;
  		private TextBox text0_30;
  		private Label label6;
  		private TextBox text31_60;
  		private Label label5;
  		private TextBox text61_90;
  		private Label label3;
  		private TextBox textOver90;
  		private Label label2;
  		private MenuItem menuItemStatementEmail;
  		private Label labelBalanceAmt;
  		private TabControl tabControlShow;
  		private TabPage tabMain;
  		private TabPage tabShow;
  		private ODGrid gridPayPlan;
  		private ValidDate textDateEnd;
  		private ValidDate textDateStart;
  		private Label labelEndDate;
  		private Label labelStartDate;
  		private OpenDental.UI.Button butRefresh;
  		private OpenDental.UI.Button but90days;
  		private OpenDental.UI.Button but45days;
  		private OpenDental.UI.Button butDatesAll;
  		private CheckBox checkShowDetail;
  		private OpenDental.UI.Button butToday;
  		private CheckBox checkShowFamilyComm;
  		private FormPayPlan FormPayPlan2;
  		private Label labelTotalAmt;
  		private Label labelInsEstAmt;
  		private Panel panelAgeLine;
  		private Panel panel2;
  		private Panel panel1;
  		private ToolTip toolTip1;
  		private Label labelPatEstBal;
  		private Label labelPatEstBalAmt;
  		private Panel panelTotalOwes;
  		private Label label21;
  		private Label labelTotalPtOwes;
  		private Label labelUnearnedAmt;
  		private Label labelUnearned;
  		private Label labelInsRem;
  		private decimal PPBalanceTotal;
  		private PatField[] _patFieldList;
  		///<summary>Gets updated to PatCur.PatNum that the last security log was made with so that we don't make too many security logs for this patient.  When _patNumLast no longer matches PatCur.PatNum (e.g. switched to a different patient within a module), a security log will be entered.  Gets reset (cleared and the set back to PatCur.PatNum) any time a module button is clicked which will cause another security log to be entered.</summary>
  		private long _patNumLast;
  
  		#region UserVariables
  		///<summary>This holds nearly all of the data needed for display.  It is retrieved in one call to the database.</summary>
  		private DataSet DataSetMain;
  		private Family FamCur;
  		///<summary></summary>
  		private Patient PatCur;
  		private PatientNote PatientNoteCur;
  		///<summary></summary>
  		[Category("Data"),Description("Occurs when user changes current patient, usually by clicking on the Select Patient button.")]
  		public event PatientSelectedEventHandler PatientSelected=null;
  		private RepeatCharge[] RepeatChargeList;
  		private int OriginalMousePos;
  		private bool MouseIsDownOnSplitter;
  		private int SplitterOriginalY;
  		private bool FinNoteChanged;
  		private bool CCChanged;
  		private bool UrgFinNoteChanged;
  		private int Actscrollval;
  		///<summary>Set to true if this control is placed in the recall edit window. This affects the control behavior.</summary>
  		public bool ViewingInRecall=false;
  		private List<DisplayField> fieldsForMainGrid;
  		private GroupBox groupBoxIndIns;
  		private TextBox textPriDed;
  		private TextBox textPriUsed;
  		private TextBox textPriDedRem;
  		private TextBox textPriPend;
  		private TextBox textPriRem;
  		private TextBox textPriMax;
  		private TextBox textSecRem;
  		private Label label10;
  		private TextBox textSecPend;
  		private Label label11;
  		private Label label18;
  		private Label label12;
  		private Label label13;
  		private TextBox textSecDedRem;
  		private Label label14;
  		private Label label15;
  		private TextBox textSecMax;
  		private Label label16;
  		private TextBox textSecDed;
  		private TextBox textSecUsed;
  		private GroupBox groupBoxFamilyIns;
  		private TextBox textFamPriMax;
  		private TextBox textFamPriDed;
  		private Label label4;
  		private Label label8;
  		private TextBox textFamSecMax;
  		private Label label9;
  		private TextBox textFamSecDed;
  		private Label label17;
  		private UI.Button butCreditCard;
  		private MenuItem menuItemRepeatMobile;
  		private MenuItem menuItemReceipt;
  		private MenuItem menuItemRepeatCanada;
  		private MenuItem menuItemInvoice;
  		private ODGrid gridPatInfo;
  		private bool InitializedOnStartup;
  		private MenuItem menuItemRepeatWebSched;
  		private List<DisplayField> _patInfoDisplayFields;
  		#endregion UserVariables
  
  		///<summary></summary>
  		public ContrAccount() {
  			Logger.openlog.Log("Initializing account module...",Logger.Severity.INFO);
  			InitializeComponent();// This call is required by the Windows.Forms Form Designer.
  		}
  
  		///<summary></summary>
  		protected override void Dispose(bool disposing) {
  			if(disposing) {
  				if(components!= null) {
  					components.Dispose();
  				}
  			}
  			base.Dispose(disposing);
  		}
  
  		#region Component Designer generated code
  
  		private void InitializeComponent() {
  			this.components = new System.ComponentModel.Container();
  			System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ContrAccount));
  			this.labelFamFinancial = new System.Windows.Forms.Label();
  			this.labelUrgFinNote = new System.Windows.Forms.Label();
  			this.contextMenuIns = new System.Windows.Forms.ContextMenu();
  			this.menuInsPri = new System.Windows.Forms.MenuItem();
  			this.menuInsSec = new System.Windows.Forms.MenuItem();
  			this.menuInsMedical = new System.Windows.Forms.MenuItem();
  			this.menuInsOther = new System.Windows.Forms.MenuItem();
  			this.imageListMain = new System.Windows.Forms.ImageList(this.components);
  			this.panelSplitter = new System.Windows.Forms.Panel();
  			this.contextMenuStatement = new System.Windows.Forms.ContextMenu();
  			this.menuItemStatementWalkout = new System.Windows.Forms.MenuItem();
  			this.menuItemStatementEmail = new System.Windows.Forms.MenuItem();
  			this.menuItemReceipt = new System.Windows.Forms.MenuItem();
  			this.menuItemInvoice = new System.Windows.Forms.MenuItem();
  			this.menuItemStatementMore = new System.Windows.Forms.MenuItem();
  			this.contextMenuRepeat = new System.Windows.Forms.ContextMenu();
  			this.menuItemRepeatStand = new System.Windows.Forms.MenuItem();
  			this.menuItemRepeatEmail = new System.Windows.Forms.MenuItem();
  			this.menuItemRepeatMobile = new System.Windows.Forms.MenuItem();
  			this.menuItemRepeatCanada = new System.Windows.Forms.MenuItem();
  			this.panelProgNotes = new System.Windows.Forms.Panel();
  			this.butShowNone = new OpenDental.UI.Button();
  			this.butShowAll = new OpenDental.UI.Button();
  			this.checkNotes = new System.Windows.Forms.CheckBox();
  			this.groupBox7 = new System.Windows.Forms.GroupBox();
  			this.checkShowTeeth = new System.Windows.Forms.CheckBox();
  			this.checkAudit = new System.Windows.Forms.CheckBox();
  			this.checkExtraNotes = new System.Windows.Forms.CheckBox();
  			this.checkAppt = new System.Windows.Forms.CheckBox();
  			this.checkLabCase = new System.Windows.Forms.CheckBox();
  			this.checkRx = new System.Windows.Forms.CheckBox();
  			this.checkComm = new System.Windows.Forms.CheckBox();
  			this.groupBox6 = new System.Windows.Forms.GroupBox();
  			this.checkShowE = new System.Windows.Forms.CheckBox();
  			this.checkShowR = new System.Windows.Forms.CheckBox();
  			this.checkShowC = new System.Windows.Forms.CheckBox();
  			this.checkShowTP = new System.Windows.Forms.CheckBox();
  			this.gridProg = new OpenDental.UI.ODGrid();
  			this.panelAging = new System.Windows.Forms.Panel();
  			this.labelInsRem = new System.Windows.Forms.Label();
  			this.labelUnearnedAmt = new System.Windows.Forms.Label();
  			this.labelUnearned = new System.Windows.Forms.Label();
  			this.labelBalanceAmt = new System.Windows.Forms.Label();
  			this.labelTotalAmt = new System.Windows.Forms.Label();
  			this.panelTotalOwes = new System.Windows.Forms.Panel();
  			this.label21 = new System.Windows.Forms.Label();
  			this.labelTotalPtOwes = new System.Windows.Forms.Label();
  			this.labelPatEstBalAmt = new System.Windows.Forms.Label();
  			this.labelPatEstBal = new System.Windows.Forms.Label();
  			this.panel2 = new System.Windows.Forms.Panel();
  			this.panel1 = new System.Windows.Forms.Panel();
  			this.panelAgeLine = new System.Windows.Forms.Panel();
  			this.labelInsEstAmt = new System.Windows.Forms.Label();
  			this.labelBalance = new System.Windows.Forms.Label();
  			this.labelInsEst = new System.Windows.Forms.Label();
  			this.labelTotal = new System.Windows.Forms.Label();
  			this.label7 = new System.Windows.Forms.Label();
  			this.text0_30 = new System.Windows.Forms.TextBox();
  			this.label6 = new System.Windows.Forms.Label();
  			this.text31_60 = new System.Windows.Forms.TextBox();
  			this.label5 = new System.Windows.Forms.Label();
  			this.text61_90 = new System.Windows.Forms.TextBox();
  			this.label3 = new System.Windows.Forms.Label();
  			this.textOver90 = new System.Windows.Forms.TextBox();
  			this.label2 = new System.Windows.Forms.Label();
  			this.tabControlShow = new System.Windows.Forms.TabControl();
  			this.tabMain = new System.Windows.Forms.TabPage();
  			this.butCreditCard = new OpenDental.UI.Button();
  			this.textUrgFinNote = new OpenDental.ODtextBox();
  			this.gridAcctPat = new OpenDental.UI.ODGrid();
  			this.textFinNotes = new OpenDental.ODtextBox();
  			this.tabShow = new System.Windows.Forms.TabPage();
  			this.checkShowFamilyComm = new System.Windows.Forms.CheckBox();
  			this.butToday = new OpenDental.UI.Button();
  			this.checkShowDetail = new System.Windows.Forms.CheckBox();
  			this.butDatesAll = new OpenDental.UI.Button();
  			this.but90days = new OpenDental.UI.Button();
  			this.but45days = new OpenDental.UI.Button();
  			this.butRefresh = new OpenDental.UI.Button();
  			this.labelEndDate = new System.Windows.Forms.Label();
  			this.labelStartDate = new System.Windows.Forms.Label();
  			this.textDateEnd = new OpenDental.ValidDate();
  			this.textDateStart = new OpenDental.ValidDate();
  			this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
  			this.groupBoxIndIns = new System.Windows.Forms.GroupBox();
  			this.textPriDed = new System.Windows.Forms.TextBox();
  			this.textPriUsed = new System.Windows.Forms.TextBox();
  			this.textPriDedRem = new System.Windows.Forms.TextBox();
  			this.textPriPend = new System.Windows.Forms.TextBox();
  			this.textPriRem = new System.Windows.Forms.TextBox();
  			this.textPriMax = new System.Windows.Forms.TextBox();
  			this.textSecRem = new System.Windows.Forms.TextBox();
  			this.label10 = new System.Windows.Forms.Label();
  			this.textSecPend = new System.Windows.Forms.TextBox();
  			this.label11 = new System.Windows.Forms.Label();
  			this.label18 = new System.Windows.Forms.Label();
  			this.label12 = new System.Windows.Forms.Label();
  			this.label13 = new System.Windows.Forms.Label();
  			this.textSecDedRem = new System.Windows.Forms.TextBox();
  			this.label14 = new System.Windows.Forms.Label();
  			this.label15 = new System.Windows.Forms.Label();
  			this.textSecMax = new System.Windows.Forms.TextBox();
  			this.label16 = new System.Windows.Forms.Label();
  			this.textSecDed = new System.Windows.Forms.TextBox();
  			this.textSecUsed = new System.Windows.Forms.TextBox();
  			this.groupBoxFamilyIns = new System.Windows.Forms.GroupBox();
  			this.textFamPriMax = new System.Windows.Forms.TextBox();
  			this.textFamPriDed = new System.Windows.Forms.TextBox();
  			this.label4 = new System.Windows.Forms.Label();
  			this.label8 = new System.Windows.Forms.Label();
  			this.textFamSecMax = new System.Windows.Forms.TextBox();
  			this.label9 = new System.Windows.Forms.Label();
  			this.textFamSecDed = new System.Windows.Forms.TextBox();
  			this.label17 = new System.Windows.Forms.Label();
  			this.gridPayPlan = new OpenDental.UI.ODGrid();
  			this.gridRepeat = new OpenDental.UI.ODGrid();
  			this.gridAccount = new OpenDental.UI.ODGrid();
  			this.gridComm = new OpenDental.UI.ODGrid();
  			this.gridPatInfo = new OpenDental.UI.ODGrid();
  			this.ToolBarMain = new OpenDental.UI.ODToolBar();
  			this.menuItemRepeatWebSched = new System.Windows.Forms.MenuItem();
  			this.panelProgNotes.SuspendLayout();
  			this.groupBox7.SuspendLayout();
  			this.groupBox6.SuspendLayout();
  			this.panelAging.SuspendLayout();
  			this.panelTotalOwes.SuspendLayout();
  			this.tabControlShow.SuspendLayout();
  			this.tabMain.SuspendLayout();
  			this.tabShow.SuspendLayout();
  			this.groupBoxIndIns.SuspendLayout();
  			this.groupBoxFamilyIns.SuspendLayout();
  			this.SuspendLayout();
  			// 
  			// labelFamFinancial
  			// 
  			this.labelFamFinancial.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  			this.labelFamFinancial.Location = new System.Drawing.Point(0, 318);
  			this.labelFamFinancial.Name = "labelFamFinancial";
  			this.labelFamFinancial.Size = new System.Drawing.Size(154, 16);
  			this.labelFamFinancial.TabIndex = 9;
  			this.labelFamFinancial.Text = "Family Financial Notes";
  			this.labelFamFinancial.TextAlign = System.Drawing.ContentAlignment.BottomLeft;
  			// 
  			// labelUrgFinNote
  			// 
  			this.labelUrgFinNote.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  			this.labelUrgFinNote.Location = new System.Drawing.Point(0, 0);
  			this.labelUrgFinNote.Name = "labelUrgFinNote";
  			this.labelUrgFinNote.Size = new System.Drawing.Size(165, 17);
  			this.labelUrgFinNote.TabIndex = 10;
  			this.labelUrgFinNote.Text = "Fam Urgent Fin Note";
  			this.labelUrgFinNote.TextAlign = System.Drawing.ContentAlignment.BottomLeft;
  			// 
  			// contextMenuIns
  			// 
  			this.contextMenuIns.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
              this.menuInsPri,
              this.menuInsSec,
              this.menuInsMedical,
              this.menuInsOther});
  			// 
  			// menuInsPri
  			// 
  			this.menuInsPri.Index = 0;
  			this.menuInsPri.Text = "Primary";
  			this.menuInsPri.Click += new System.EventHandler(this.menuInsPri_Click);
  			// 
  			// menuInsSec
  			// 
  			this.menuInsSec.Index = 1;
  			this.menuInsSec.Text = "Secondary";
  			this.menuInsSec.Click += new System.EventHandler(this.menuInsSec_Click);
  			// 
  			// menuInsMedical
  			// 
  			this.menuInsMedical.Index = 2;
  			this.menuInsMedical.Text = "Medical";
  			this.menuInsMedical.Click += new System.EventHandler(this.menuInsMedical_Click);
  			// 
  			// menuInsOther
  			// 
  			this.menuInsOther.Index = 3;
  			this.menuInsOther.Text = "Other";
  			this.menuInsOther.Click += new System.EventHandler(this.menuInsOther_Click);
  			// 
  			// imageListMain
  			// 
  			this.imageListMain.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageListMain.ImageStream")));
  			this.imageListMain.TransparentColor = System.Drawing.Color.Transparent;
  			this.imageListMain.Images.SetKeyName(0, "Pat.gif");
  			this.imageListMain.Images.SetKeyName(1, "");
  			this.imageListMain.Images.SetKeyName(2, "");
  			this.imageListMain.Images.SetKeyName(3, "Umbrella.gif");
  			this.imageListMain.Images.SetKeyName(4, "");
  			// 
  			// panelSplitter
  			// 
  			this.panelSplitter.Cursor = System.Windows.Forms.Cursors.SizeNS;
  			this.panelSplitter.Location = new System.Drawing.Point(0, 425);
  			this.panelSplitter.Name = "panelSplitter";
  			this.panelSplitter.Size = new System.Drawing.Size(769, 5);
  			this.panelSplitter.TabIndex = 49;
  			this.panelSplitter.MouseDown += new System.Windows.Forms.MouseEventHandler(this.panelSplitter_MouseDown);
  			this.panelSplitter.MouseMove += new System.Windows.Forms.MouseEventHandler(this.panelSplitter_MouseMove);
  			this.panelSplitter.MouseUp += new System.Windows.Forms.MouseEventHandler(this.panelSplitter_MouseUp);
  			// 
  			// contextMenuStatement
  			// 
  			this.contextMenuStatement.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
              this.menuItemStatementWalkout,
              this.menuItemStatementEmail,
              this.menuItemReceipt,
              this.menuItemInvoice,
              this.menuItemStatementMore});
  			// 
  			// menuItemStatementWalkout
  			// 
  			this.menuItemStatementWalkout.Index = 0;
  			this.menuItemStatementWalkout.Text = "Walkout";
  			this.menuItemStatementWalkout.Click += new System.EventHandler(this.menuItemStatementWalkout_Click);
  			// 
  			// menuItemStatementEmail
  			// 
  			this.menuItemStatementEmail.Index = 1;
  			this.menuItemStatementEmail.Text = "Email";
  			this.menuItemStatementEmail.Click += new System.EventHandler(this.menuItemStatementEmail_Click);
  			// 
  			// menuItemReceipt
  			// 
  			this.menuItemReceipt.Index = 2;
  			this.menuItemReceipt.Text = "Receipt";
  			this.menuItemReceipt.Click += new System.EventHandler(this.menuItemReceipt_Click);
  			// 
  			// menuItemInvoice
  			// 
  			this.menuItemInvoice.Index = 3;
  			this.menuItemInvoice.Text = "Invoice";
  			this.menuItemInvoice.Click += new System.EventHandler(this.menuItemInvoice_Click);
  			// 
  			// menuItemStatementMore
  			// 
  			this.menuItemStatementMore.Index = 4;
  			this.menuItemStatementMore.Text = "More Options";
  			this.menuItemStatementMore.Click += new System.EventHandler(this.menuItemStatementMore_Click);
  			// 
  			// contextMenuRepeat
  			// 
  			this.contextMenuRepeat.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
              this.menuItemRepeatStand,
              this.menuItemRepeatEmail,
              this.menuItemRepeatMobile,
              this.menuItemRepeatCanada,
              this.menuItemRepeatWebSched});
  			// 
  			// menuItemRepeatStand
  			// 
  			this.menuItemRepeatStand.Index = 0;
  			this.menuItemRepeatStand.Text = "Standard Monthly";
  			this.menuItemRepeatStand.Click += new System.EventHandler(this.MenuItemRepeatStand_Click);
  			// 
  			// menuItemRepeatEmail
  			// 
  			this.menuItemRepeatEmail.Index = 1;
  			this.menuItemRepeatEmail.Text = "Email Monthly";
  			this.menuItemRepeatEmail.Click += new System.EventHandler(this.MenuItemRepeatEmail_Click);
  			// 
  			// menuItemRepeatMobile
  			// 
  			this.menuItemRepeatMobile.Index = 2;
  			this.menuItemRepeatMobile.Text = "Mobile Monthly";
  			this.menuItemRepeatMobile.Click += new System.EventHandler(this.menuItemRepeatMobile_Click);
  			// 
  			// menuItemRepeatCanada
  			// 
  			this.menuItemRepeatCanada.Index = 3;
  			this.menuItemRepeatCanada.Text = "Canada Monthly";
  			this.menuItemRepeatCanada.Click += new System.EventHandler(this.menuItemRepeatCanada_Click);
  			// 
  			// panelProgNotes
  			// 
  			this.panelProgNotes.Controls.Add(this.butShowNone);
  			this.panelProgNotes.Controls.Add(this.butShowAll);
  			this.panelProgNotes.Controls.Add(this.checkNotes);
  			this.panelProgNotes.Controls.Add(this.groupBox7);
  			this.panelProgNotes.Controls.Add(this.groupBox6);
  			this.panelProgNotes.Controls.Add(this.gridProg);
  			this.panelProgNotes.Location = new System.Drawing.Point(0, 461);
  			this.panelProgNotes.Name = "panelProgNotes";
  			this.panelProgNotes.Size = new System.Drawing.Size(749, 227);
  			this.panelProgNotes.TabIndex = 211;
  			// 
  			// butShowNone
  			// 
  			this.butShowNone.AdjustImageLocation = new System.Drawing.Point(0, 0);
  			this.butShowNone.Autosize = true;
  			this.butShowNone.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle;
  			this.butShowNone.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver;
  			this.butShowNone.CornerRadius = 4F;
  			this.butShowNone.Location = new System.Drawing.Point(677, 207);
  			this.butShowNone.Name = "butShowNone";
  			this.butShowNone.Size = new System.Drawing.Size(58, 16);
  			this.butShowNone.TabIndex = 216;
  			this.butShowNone.Text = "None";
  			this.butShowNone.Visible = false;
  			this.butShowNone.Click += new System.EventHandler(this.butShowNone_Click);
  			// 
  			// butShowAll
  			// 
  			this.butShowAll.AdjustImageLocation = new System.Drawing.Point(0, 0);
  			this.butShowAll.Autosize = true;
  			this.butShowAll.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle;
  			this.butShowAll.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver;
  			this.butShowAll.CornerRadius = 4F;
  			this.butShowAll.Location = new System.Drawing.Point(614, 207);
  			this.butShowAll.Name = "butShowAll";
  			this.butShowAll.Size = new System.Drawing.Size(53, 16);
  			this.butShowAll.TabIndex = 215;
  			this.butShowAll.Text = "All";
  			this.butShowAll.Visible = false;
  			this.butShowAll.Click += new System.EventHandler(this.butShowAll_Click);
  			// 
  			// checkNotes
  			// 
  			this.checkNotes.AllowDrop = true;
  			this.checkNotes.Checked = true;
  			this.checkNotes.CheckState = System.Windows.Forms.CheckState.Checked;
  			this.checkNotes.FlatStyle = System.Windows.Forms.FlatStyle.System;
  			this.checkNotes.Location = new System.Drawing.Point(624, 191);
  			this.checkNotes.Name = "checkNotes";
  			this.checkNotes.Size = new System.Drawing.Size(102, 13);
  			this.checkNotes.TabIndex = 214;
  			this.checkNotes.Text = "Proc Notes";
  			this.checkNotes.Visible = false;
  			this.checkNotes.Click += new System.EventHandler(this.checkNotes_Click);
  			// 
  			// groupBox7
  			// 
  			this.groupBox7.Controls.Add(this.checkShowTeeth);
  			this.groupBox7.Controls.Add(this.checkAudit);
  			this.groupBox7.Controls.Add(this.checkExtraNotes);
  			this.groupBox7.Controls.Add(this.checkAppt);
  			this.groupBox7.Controls.Add(this.checkLabCase);
  			this.groupBox7.Controls.Add(this.checkRx);
  			this.groupBox7.Controls.Add(this.checkComm);
  			this.groupBox7.Location = new System.Drawing.Point(614, 88);
  			this.groupBox7.Name = "groupBox7";
  			this.groupBox7.Size = new System.Drawing.Size(121, 101);
  			this.groupBox7.TabIndex = 213;
  			this.groupBox7.TabStop = false;
  			this.groupBox7.Text = "Object Types";
  			this.groupBox7.Visible = false;
  			// 
  			// checkShowTeeth
  			// 
  			this.checkShowTeeth.FlatStyle = System.Windows.Forms.FlatStyle.System;
  			this.checkShowTeeth.Location = new System.Drawing.Point(44, 63);
  			this.checkShowTeeth.Name = "checkShowTeeth";
  			this.checkShowTeeth.Size = new System.Drawing.Size(104, 13);
  			this.checkShowTeeth.TabIndex = 217;
  			this.checkShowTeeth.Text = "Selected Teeth";
  			this.checkShowTeeth.Visible = false;
  			// 
  			// checkAudit
  			// 
  			this.checkAudit.FlatStyle = System.Windows.Forms.FlatStyle.System;
  			this.checkAudit.Location = new System.Drawing.Point(44, 79);
  			this.checkAudit.Name = "checkAudit";
  			this.checkAudit.Size = new System.Drawing.Size(73, 13);
  			this.checkAudit.TabIndex = 218;
  			this.checkAudit.Text = "Audit";
  			this.checkAudit.Visible = false;
  			// 
  			// checkExtraNotes
  			// 
  			this.checkExtraNotes.AllowDrop = true;
  			this.checkExtraNotes.Checked = true;
  			this.checkExtraNotes.CheckState = System.Windows.Forms.CheckState.Checked;
  			this.checkExtraNotes.FlatStyle = System.Windows.Forms.FlatStyle.System;
  			this.checkExtraNotes.Location = new System.Drawing.Point(9, 82);
  			this.checkExtraNotes.Name = "checkExtraNotes";
  			this.checkExtraNotes.Size = new System.Drawing.Size(102, 13);
  			this.checkExtraNotes.TabIndex = 215;
  			this.checkExtraNotes.Text = "Extra Notes";
  			this.checkExtraNotes.Visible = false;
  			this.checkExtraNotes.Click += new System.EventHandler(this.checkExtraNotes_Click);
  			// 
  			// checkAppt
  			// 
  			this.checkAppt.Checked = true;
  			this.checkAppt.CheckState = System.Windows.Forms.CheckState.Checked;
  			this.checkAppt.FlatStyle = System.Windows.Forms.FlatStyle.System;
  			this.checkAppt.Location = new System.Drawing.Point(10, 17);
  			this.checkAppt.Name = "checkAppt";
  			this.checkAppt.Size = new System.Drawing.Size(102, 13);
  			this.checkAppt.TabIndex = 20;
  			this.checkAppt.Text = "Appointments";
  			this.checkAppt.Click += new System.EventHandler(this.checkAppt_Click);
  			// 
  			// checkLabCase
  			// 
  			this.checkLabCase.Checked = true;
  			this.checkLabCase.CheckState = System.Windows.Forms.CheckState.Checked;
  			this.checkLabCase.FlatStyle = System.Windows.Forms.FlatStyle.System;
  			this.checkLabCase.Location = new System.Drawing.Point(10, 49);
  			this.checkLabCase.Name = "checkLabCase";
  			this.checkLabCase.Size = new System.Drawing.Size(102, 13);
  			this.checkLabCase.TabIndex = 17;
  			this.checkLabCase.Text = "Lab Cases";
  			this.checkLabCase.Click += new System.EventHandler(this.checkLabCase_Click);
  			// 
  			// checkRx
  			// 
  			this.checkRx.Checked = true;
  			this.checkRx.CheckState = System.Windows.Forms.CheckState.Checked;
  			this.checkRx.FlatStyle = System.Windows.Forms.FlatStyle.System;
  			this.checkRx.Location = new System.Drawing.Point(10, 65);
  			this.checkRx.Name = "checkRx";
  			this.checkRx.Size = new System.Drawing.Size(102, 13);
  			this.checkRx.TabIndex = 8;
  			this.checkRx.Text = "Rx";
  			this.checkRx.Click += new System.EventHandler(this.checkRx_Click);
  			// 
  			// checkComm
  			// 
  			this.checkComm.Checked = true;
  			this.checkComm.CheckState = System.Windows.Forms.CheckState.Checked;
  			this.checkComm.FlatStyle = System.Windows.Forms.FlatStyle.System;
  			this.checkComm.Location = new System.Drawing.Point(10, 33);
  			this.checkComm.Name = "checkComm";
  			this.checkComm.Size = new System.Drawing.Size(102, 13);
  			this.checkComm.TabIndex = 16;
  			this.checkComm.Text = "Comm Log";
  			this.checkComm.Click += new System.EventHandler(this.checkComm_Click);
  			// 
  			// groupBox6
  			// 
  			this.groupBox6.Controls.Add(this.checkShowE);
  			this.groupBox6.Controls.Add(this.checkShowR);
  			this.groupBox6.Controls.Add(this.checkShowC);
  			this.groupBox6.Controls.Add(this.checkShowTP);
  			this.groupBox6.Location = new System.Drawing.Point(614, 1);
  			this.groupBox6.Name = "groupBox6";
  			this.groupBox6.Size = new System.Drawing.Size(121, 85);
  			this.groupBox6.TabIndex = 212;
  			this.groupBox6.TabStop = false;
  			this.groupBox6.Text = "Procedures";
  			this.groupBox6.Visible = false;
  			// 
  			// checkShowE
  			// 
  			this.checkShowE.Checked = true;
  			this.checkShowE.CheckState = System.Windows.Forms.CheckState.Checked;
  			this.checkShowE.FlatStyle = System.Windows.Forms.FlatStyle.System;
  			this.checkShowE.Location = new System.Drawing.Point(9, 49);
  			this.checkShowE.Name = "checkShowE";
  			this.checkShowE.Size = new System.Drawing.Size(101, 13);
  			this.checkShowE.TabIndex = 10;
  			this.checkShowE.Text = "Existing";
  			this.checkShowE.Click += new System.EventHandler(this.checkShowE_Click);
  			// 
  			// checkShowR
  			// 
  			this.checkShowR.Checked = true;
  			this.checkShowR.CheckState = System.Windows.Forms.CheckState.Checked;
  			this.checkShowR.FlatStyle = System.Windows.Forms.FlatStyle.System;
  			this.checkShowR.Location = new System.Drawing.Point(9, 65);
  			this.checkShowR.Name = "checkShowR";
  			this.checkShowR.Size = new System.Drawing.Size(101, 13);
  			this.checkShowR.TabIndex = 14;
  			this.checkShowR.Text = "Referred";
  			this.checkShowR.Click += new System.EventHandler(this.checkShowR_Click);
  			// 
  			// checkShowC
  			// 
  			this.checkShowC.Checked = true;
  			this.checkShowC.CheckState = System.Windows.Forms.CheckState.Checked;
  			this.checkShowC.FlatStyle = System.Windows.Forms.FlatStyle.System;
  			this.checkShowC.Location = new System.Drawing.Point(9, 33);
  			this.checkShowC.Name = "checkShowC";
  			this.checkShowC.Size = new System.Drawing.Size(101, 13);
  			this.checkShowC.TabIndex = 9;
  			this.checkShowC.Text = "Completed";
  			this.checkShowC.Click += new System.EventHandler(this.checkShowC_Click);
  			// 
  			// checkShowTP
  			// 
  			this.checkShowTP.Checked = true;
  			this.checkShowTP.CheckState = System.Windows.Forms.CheckState.Checked;
  			this.checkShowTP.FlatStyle = System.Windows.Forms.FlatStyle.System;
  			this.checkShowTP.Location = new System.Drawing.Point(9, 17);
  			this.checkShowTP.Name = "checkShowTP";
  			this.checkShowTP.Size = new System.Drawing.Size(101, 13);
  			this.checkShowTP.TabIndex = 8;
  			this.checkShowTP.Text = "Treat Plan";
  			this.checkShowTP.Click += new System.EventHandler(this.checkShowTP_Click);
  			// 
  			// gridProg
  			// 
  			this.gridProg.HScrollVisible = true;
  			this.gridProg.Location = new System.Drawing.Point(3, 0);
  			this.gridProg.Name = "gridProg";
  			this.gridProg.ScrollValue = 0;
  			this.gridProg.SelectionMode = OpenDental.UI.GridSelectionMode.MultiExtended;
  			this.gridProg.Size = new System.Drawing.Size(603, 230);
  			this.gridProg.TabIndex = 211;
  			this.gridProg.Title = "Progress Notes";
  			this.gridProg.TranslationName = "TableProg";
  			this.gridProg.CellDoubleClick += new OpenDental.UI.ODGridClickEventHandler(this.gridProg_CellDoubleClick);
  			// 
  			// panelAging
  			// 
  			this.panelAging.Controls.Add(this.labelInsRem);
  			this.panelAging.Controls.Add(this.labelUnearnedAmt);
  			this.panelAging.Controls.Add(this.labelUnearned);
  			this.panelAging.Controls.Add(this.labelBalanceAmt);
  			this.panelAging.Controls.Add(this.labelTotalAmt);
  			this.panelAging.Controls.Add(this.panelTotalOwes);
  			this.panelAging.Controls.Add(this.labelPatEstBalAmt);
  			this.panelAging.Controls.Add(this.labelPatEstBal);
  			this.panelAging.Controls.Add(this.panel2);
  			this.panelAging.Controls.Add(this.panel1);
  			this.panelAging.Controls.Add(this.panelAgeLine);
  			this.panelAging.Controls.Add(this.labelInsEstAmt);
  			this.panelAging.Controls.Add(this.labelBalance);
  			this.panelAging.Controls.Add(this.labelInsEst);
  			this.panelAging.Controls.Add(this.labelTotal);
  			this.panelAging.Controls.Add(this.label7);
  			this.panelAging.Controls.Add(this.text0_30);
  			this.panelAging.Controls.Add(this.label6);
  			this.panelAging.Controls.Add(this.text31_60);
  			this.panelAging.Controls.Add(this.label5);
  			this.panelAging.Controls.Add(this.text61_90);
  			this.panelAging.Controls.Add(this.label3);
  			this.panelAging.Controls.Add(this.textOver90);
  			this.panelAging.Controls.Add(this.label2);
  			this.panelAging.Location = new System.Drawing.Point(0, 25);
  			this.panelAging.Name = "panelAging";
  			this.panelAging.Size = new System.Drawing.Size(749, 37);
  			this.panelAging.TabIndex = 213;
  			// 
  			// labelInsRem
  			// 
  			this.labelInsRem.BackColor = System.Drawing.Color.LightGray;
  			this.labelInsRem.Location = new System.Drawing.Point(700, 4);
  			this.labelInsRem.Name = "labelInsRem";
  			this.labelInsRem.Size = new System.Drawing.Size(45, 29);
  			this.labelInsRem.TabIndex = 0;
  			this.labelInsRem.Text = "Ins\r\nRem";
  			this.labelInsRem.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
  			this.labelInsRem.MouseEnter += new System.EventHandler(this.labelInsRem_MouseEnter);
  			this.labelInsRem.MouseLeave += new System.EventHandler(this.labelInsRem_MouseLeave);
  			// 
  			// labelUnearnedAmt
  			// 
  			this.labelUnearnedAmt.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  			this.labelUnearnedAmt.ForeColor = System.Drawing.Color.Firebrick;
  			this.labelUnearnedAmt.Location = new System.Drawing.Point(636, 18);
  			this.labelUnearnedAmt.Name = "labelUnearnedAmt";
  			this.labelUnearnedAmt.Size = new System.Drawing.Size(60, 13);
  			this.labelUnearnedAmt.TabIndex = 228;
  			this.labelUnearnedAmt.Text = "25000.00";
  			this.labelUnearnedAmt.TextAlign = System.Drawing.ContentAlignment.TopCenter;
  			// 
  			// labelUnearned
  			// 
  			this.labelUnearned.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  			this.labelUnearned.ForeColor = System.Drawing.SystemColors.ControlText;
  			this.labelUnearned.Location = new System.Drawing.Point(632, 2);
  			this.labelUnearned.Name = "labelUnearned";
  			this.labelUnearned.Size = new System.Drawing.Size(68, 13);
  			this.labelUnearned.TabIndex = 227;
  			this.labelUnearned.Text = "Unearned";
  			this.labelUnearned.TextAlign = System.Drawing.ContentAlignment.TopCenter;
  			// 
  			// labelBalanceAmt
  			// 
  			this.labelBalanceAmt.Font = new System.Drawing.Font("Microsoft Sans Serif", 11F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  			this.labelBalanceAmt.ForeColor = System.Drawing.Color.Firebrick;
  			this.labelBalanceAmt.Location = new System.Drawing.Point(456, 16);
  			this.labelBalanceAmt.Name = "labelBalanceAmt";
  			this.labelBalanceAmt.Size = new System.Drawing.Size(80, 19);
  			this.labelBalanceAmt.TabIndex = 60;
  			this.labelBalanceAmt.Text = "25000.00";
  			this.labelBalanceAmt.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
  			// 
  			// labelTotalAmt
  			// 
  			this.labelTotalAmt.Font = new System.Drawing.Font("Microsoft Sans Serif", 11F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  			this.labelTotalAmt.ForeColor = System.Drawing.Color.Firebrick;
  			this.labelTotalAmt.Location = new System.Drawing.Point(294, 16);
  			this.labelTotalAmt.Name = "labelTotalAmt";
  			this.labelTotalAmt.Size = new System.Drawing.Size(80, 19);
  			this.labelTotalAmt.TabIndex = 61;
  			this.labelTotalAmt.Text = "25000.00";
  			this.labelTotalAmt.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
  			// 
  			// panelTotalOwes
  			// 
  			this.panelTotalOwes.Controls.Add(this.label21);
  			this.panelTotalOwes.Controls.Add(this.labelTotalPtOwes);
  			this.panelTotalOwes.Location = new System.Drawing.Point(560, -38);
  			this.panelTotalOwes.Name = "panelTotalOwes";
  			this.panelTotalOwes.Size = new System.Drawing.Size(126, 37);
  			this.panelTotalOwes.TabIndex = 226;
  			// 
  			// label21
  			// 
  			this.label21.Location = new System.Drawing.Point(3, 0);
  			this.label21.Name = "label21";
  			this.label21.Size = new System.Drawing.Size(123, 12);
  			this.label21.TabIndex = 223;
  			this.label21.Text = "TOTAL  Owed w/ Plan:";
  			this.label21.TextAlign = System.Drawing.ContentAlignment.TopCenter;
  			this.toolTip1.SetToolTip(this.label21, "Total balance owed on all payment plans ");
  			// 
  			// labelTotalPtOwes
  			// 
  			this.labelTotalPtOwes.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  			this.labelTotalPtOwes.ForeColor = System.Drawing.Color.Firebrick;
  			this.labelTotalPtOwes.Location = new System.Drawing.Point(6, 12);
  			this.labelTotalPtOwes.Name = "labelTotalPtOwes";
  			this.labelTotalPtOwes.Size = new System.Drawing.Size(112, 23);
  			this.labelTotalPtOwes.TabIndex = 222;
  			this.labelTotalPtOwes.Text = "2500.00";
  			this.labelTotalPtOwes.TextAlign = System.Drawing.ContentAlignment.TopCenter;
  			// 
  			// labelPatEstBalAmt
  			// 
  			this.labelPatEstBalAmt.Location = new System.Drawing.Point(550, 19);
  			this.labelPatEstBalAmt.Name = "labelPatEstBalAmt";
  			this.labelPatEstBalAmt.Size = new System.Drawing.Size(65, 13);
  			this.labelPatEstBalAmt.TabIndex = 89;
  			this.labelPatEstBalAmt.Text = "25000.00";
  			this.labelPatEstBalAmt.TextAlign = System.Drawing.ContentAlignment.TopCenter;
  			// 
  			// labelPatEstBal
  			// 
  			this.labelPatEstBal.Location = new System.Drawing.Point(550, 3);
  			this.labelPatEstBal.Name = "labelPatEstBal";
  			this.labelPatEstBal.Size = new System.Drawing.Size(65, 13);
  			this.labelPatEstBal.TabIndex = 88;
  			this.labelPatEstBal.Text = "Pat Est Bal";
  			this.labelPatEstBal.TextAlign = System.Drawing.ContentAlignment.TopCenter;
  			// 
  			// panel2
  			// 
  			this.panel2.BackColor = System.Drawing.SystemColors.ControlDark;
  			this.panel2.Location = new System.Drawing.Point(624, 3);
  			this.panel2.Name = "panel2";
  			this.panel2.Size = new System.Drawing.Size(2, 32);
  			this.panel2.TabIndex = 87;
  			// 
  			// panel1
  			// 
  			this.panel1.BackColor = System.Drawing.SystemColors.ControlDark;
  			this.panel1.Location = new System.Drawing.Point(541, 3);
  			this.panel1.Name = "panel1";
  			this.panel1.Size = new System.Drawing.Size(2, 32);
  			this.panel1.TabIndex = 86;
  			// 
  			// panelAgeLine
  			// 
  			this.panelAgeLine.BackColor = System.Drawing.SystemColors.ControlDark;
  			this.panelAgeLine.Location = new System.Drawing.Point(379, 2);
  			this.panelAgeLine.Name = "panelAgeLine";
  			this.panelAgeLine.Size = new System.Drawing.Size(2, 32);
  			this.panelAgeLine.TabIndex = 63;
  			// 
  			// labelInsEstAmt
  			// 
  			this.labelInsEstAmt.Location = new System.Drawing.Point(387, 18);
  			this.labelInsEstAmt.Name = "labelInsEstAmt";
  			this.labelInsEstAmt.Size = new System.Drawing.Size(65, 13);
  			this.labelInsEstAmt.TabIndex = 62;
  			this.labelInsEstAmt.Text = "2500.00";
  			this.labelInsEstAmt.TextAlign = System.Drawing.ContentAlignment.TopCenter;
  			// 
  			// labelBalance
  			// 
  			this.labelBalance.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  			this.labelBalance.Location = new System.Drawing.Point(454, 2);
  			this.labelBalance.Name = "labelBalance";
  			this.labelBalance.Size = new System.Drawing.Size(80, 13);
  			this.labelBalance.TabIndex = 59;
  			this.labelBalance.Text = "= Balance";
  			this.labelBalance.TextAlign = System.Drawing.ContentAlignment.TopCenter;
  			// 
  			// labelInsEst
  			// 
  			this.labelInsEst.Location = new System.Drawing.Point(387, 2);
  			this.labelInsEst.Name = "labelInsEst";
  			this.labelInsEst.Size = new System.Drawing.Size(65, 13);
  			this.labelInsEst.TabIndex = 57;
  			this.labelInsEst.Text = "- InsEst";
  			this.labelInsEst.TextAlign = System.Drawing.ContentAlignment.TopCenter;
  			// 
  			// labelTotal
  			// 
  			this.labelTotal.Location = new System.Drawing.Point(294, 2);
  			this.labelTotal.Name = "labelTotal";
  			this.labelTotal.Size = new System.Drawing.Size(80, 13);
  			this.labelTotal.TabIndex = 55;
  			this.labelTotal.Text = "Total";
  			this.labelTotal.TextAlign = System.Drawing.ContentAlignment.TopCenter;
  			// 
  			// label7
  			// 
  			this.label7.Location = new System.Drawing.Point(69, 2);
  			this.label7.Name = "label7";
  			this.label7.Size = new System.Drawing.Size(55, 13);
  			this.label7.TabIndex = 53;
  			this.label7.Text = "0-30";
  			this.label7.TextAlign = System.Drawing.ContentAlignment.TopCenter;
  			// 
  			// text0_30
  			// 
  			this.text0_30.Location = new System.Drawing.Point(67, 15);
  			this.text0_30.Name = "text0_30";
  			this.text0_30.ReadOnly = true;
  			this.text0_30.Size = new System.Drawing.Size(55, 20);
  			this.text0_30.TabIndex = 52;
  			this.text0_30.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
  			// 
  			// label6
  			// 
  			this.label6.Location = new System.Drawing.Point(122, 2);
  			this.label6.Name = "label6";
  			this.label6.Size = new System.Drawing.Size(55, 13);
  			this.label6.TabIndex = 51;
  			this.label6.Text = "31-60";
  			this.label6.TextAlign = System.Drawing.ContentAlignment.TopCenter;
  			// 
  			// text31_60
  			// 
  			this.text31_60.Location = new System.Drawing.Point(122, 15);
  			this.text31_60.Name = "text31_60";
  			this.text31_60.ReadOnly = true;
  			this.text31_60.Size = new System.Drawing.Size(55, 20);
  			this.text31_60.TabIndex = 50;
  			this.text31_60.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
  			// 
  			// label5
  			// 
  			this.label5.Location = new System.Drawing.Point(177, 2);
  			this.label5.Name = "label5";
  			this.label5.Size = new System.Drawing.Size(55, 13);
  			this.label5.TabIndex = 49;
  			this.label5.Text = "61-90";
  			this.label5.TextAlign = System.Drawing.ContentAlignment.TopCenter;
  			// 
  			// text61_90
  			// 
  			this.text61_90.Location = new System.Drawing.Point(177, 15);
  			this.text61_90.Name = "text61_90";
  			this.text61_90.ReadOnly = true;
  			this.text61_90.Size = new System.Drawing.Size(55, 20);
  			this.text61_90.TabIndex = 48;
  			this.text61_90.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
  			// 
  			// label3
  			// 
  			this.label3.Location = new System.Drawing.Point(232, 2);
  			this.label3.Name = "label3";
  			this.label3.Size = new System.Drawing.Size(55, 13);
  			this.label3.TabIndex = 47;
  			this.label3.Text = "over 90";
  			this.label3.TextAlign = System.Drawing.ContentAlignment.TopCenter;
  			// 
  			// textOver90
  			// 
  			this.textOver90.Location = new System.Drawing.Point(232, 15);
  			this.textOver90.Name = "textOver90";
  			this.textOver90.ReadOnly = true;
  			this.textOver90.Size = new System.Drawing.Size(55, 20);
  			this.textOver90.TabIndex = 46;
  			this.textOver90.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
  			// 
  			// label2
  			// 
  			this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  			this.label2.Location = new System.Drawing.Point(14, 2);
  			this.label2.Name = "label2";
  			this.label2.Size = new System.Drawing.Size(50, 33);
  			this.label2.TabIndex = 45;
  			this.label2.Text = "Family\r\nAging";
  			this.label2.TextAlign = System.Drawing.ContentAlignment.TopRight;
  			// 
  			// tabControlShow
  			// 
  			this.tabControlShow.Controls.Add(this.tabMain);
  			this.tabControlShow.Controls.Add(this.tabShow);
  			this.tabControlShow.Location = new System.Drawing.Point(749, 27);
  			this.tabControlShow.Name = "tabControlShow";
  			this.tabControlShow.SelectedIndex = 0;
  			this.tabControlShow.Size = new System.Drawing.Size(186, 497);
  			this.tabControlShow.TabIndex = 216;
  			// 
  			// tabMain
  			// 
  			this.tabMain.BackColor = System.Drawing.Color.Transparent;
  			this.tabMain.Controls.Add(this.butCreditCard);
  			this.tabMain.Controls.Add(this.labelUrgFinNote);
  			this.tabMain.Controls.Add(this.labelFamFinancial);
  			this.tabMain.Controls.Add(this.textUrgFinNote);
  			this.tabMain.Controls.Add(this.gridAcctPat);
  			this.tabMain.Controls.Add(this.textFinNotes);
  			this.tabMain.Location = new System.Drawing.Point(4, 22);
  			this.tabMain.Name = "tabMain";
  			this.tabMain.Padding = new System.Windows.Forms.Padding(3);
  			this.tabMain.Size = new System.Drawing.Size(178, 471);
  			this.tabMain.TabIndex = 0;
  			this.tabMain.Text = "Main";
  			this.tabMain.UseVisualStyleBackColor = true;
  			// 
  			// butCreditCard
  			// 
  			this.butCreditCard.AdjustImageLocation = new System.Drawing.Point(0, 0);
  			this.butCreditCard.Autosize = true;
  			this.butCreditCard.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle;
  			this.butCreditCard.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver;
  			this.butCreditCard.CornerRadius = 4F;
  			this.butCreditCard.Location = new System.Drawing.Point(22, 103);
  			this.butCreditCard.Name = "butCreditCard";
  			this.butCreditCard.Size = new System.Drawing.Size(137, 26);
  			this.butCreditCard.TabIndex = 216;
  			this.butCreditCard.Text = "Credit Card Manage";
  			this.butCreditCard.UseVisualStyleBackColor = true;
  			this.butCreditCard.Click += new System.EventHandler(this.butCreditCard_Click);
  			// 
  			// textUrgFinNote
  			// 
  			this.textUrgFinNote.AcceptsTab = true;
  			this.textUrgFinNote.BackColor = System.Drawing.Color.White;
  			this.textUrgFinNote.DetectUrls = false;
  			this.textUrgFinNote.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  			this.textUrgFinNote.ForeColor = System.Drawing.Color.Red;
  			this.textUrgFinNote.Location = new System.Drawing.Point(0, 20);
  			this.textUrgFinNote.Name = "textUrgFinNote";
  			this.textUrgFinNote.QuickPasteType = OpenDentBusiness.QuickPasteType.FinancialNotes;
  			this.textUrgFinNote.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.Vertical;
  			this.textUrgFinNote.Size = new System.Drawing.Size(178, 77);
  			this.textUrgFinNote.TabIndex = 11;
  			this.textUrgFinNote.Text = "";
  			this.textUrgFinNote.TextChanged += new System.EventHandler(this.textUrgFinNote_TextChanged);
  			this.textUrgFinNote.Leave += new System.EventHandler(this.textUrgFinNote_Leave);
  			// 
  			// gridAcctPat
  			// 
  			this.gridAcctPat.HScrollVisible = false;
  			this.gridAcctPat.Location = new System.Drawing.Point(0, 135);
  			this.gridAcctPat.Name = "gridAcctPat";
  			this.gridAcctPat.ScrollValue = 0;
  			this.gridAcctPat.SelectedRowColor = System.Drawing.Color.DarkSalmon;
  			this.gridAcctPat.Size = new System.Drawing.Size(178, 180);
  			this.gridAcctPat.TabIndex = 72;
  			this.gridAcctPat.Title = "Select Patient";
  			this.gridAcctPat.TranslationName = "TableAccountPat";
  			this.gridAcctPat.CellClick += new OpenDental.UI.ODGridClickEventHandler(this.gridAcctPat_CellClick);
  			// 
  			// textFinNotes
  			// 
  			this.textFinNotes.AcceptsTab = true;
  			this.textFinNotes.DetectUrls = false;
  			this.textFinNotes.Location = new System.Drawing.Point(0, 337);
  			this.textFinNotes.Name = "textFinNotes";
  			this.textFinNotes.QuickPasteType = OpenDentBusiness.QuickPasteType.FinancialNotes;
  			this.textFinNotes.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.Vertical;
  			this.textFinNotes.Size = new System.Drawing.Size(178, 134);
  			this.textFinNotes.TabIndex = 70;
  			this.textFinNotes.Text = "";
  			this.textFinNotes.TextChanged += new System.EventHandler(this.textFinNotes_TextChanged);
  			this.textFinNotes.Leave += new System.EventHandler(this.textFinNotes_Leave);
  			// 
  			// tabShow
  			// 
  			this.tabShow.BackColor = System.Drawing.Color.Transparent;
  			this.tabShow.Controls.Add(this.checkShowFamilyComm);
  			this.tabShow.Controls.Add(this.butToday);
  			this.tabShow.Controls.Add(this.checkShowDetail);
  			this.tabShow.Controls.Add(this.butDatesAll);
  			this.tabShow.Controls.Add(this.but90days);
  			this.tabShow.Controls.Add(this.but45days);
  			this.tabShow.Controls.Add(this.butRefresh);
  			this.tabShow.Controls.Add(this.labelEndDate);
  			this.tabShow.Controls.Add(this.labelStartDate);
  			this.tabShow.Controls.Add(this.textDateEnd);
  			this.tabShow.Controls.Add(this.textDateStart);
  			this.tabShow.Location = new System.Drawing.Point(4, 22);
  			this.tabShow.Name = "tabShow";
  			this.tabShow.Padding = new System.Windows.Forms.Padding(3);
  			this.tabShow.Size = new System.Drawing.Size(178, 471);
  			this.tabShow.TabIndex = 1;
  			this.tabShow.Text = "Show";
  			this.tabShow.UseVisualStyleBackColor = true;
  			// 
  			// checkShowFamilyComm
  			// 
  			this.checkShowFamilyComm.AutoSize = true;
  			this.checkShowFamilyComm.Location = new System.Drawing.Point(8, 220);
  			this.checkShowFamilyComm.Name = "checkShowFamilyComm";
  			this.checkShowFamilyComm.Size = new System.Drawing.Size(152, 17);
  			this.checkShowFamilyComm.TabIndex = 221;
  			this.checkShowFamilyComm.Text = "Show Family Comm Entries";
  			this.checkShowFamilyComm.UseVisualStyleBackColor = true;
  			this.checkShowFamilyComm.Click += new System.EventHandler(this.checkShowFamilyComm_Click);
  			// 
  			// butToday
  			// 
  			this.butToday.AdjustImageLocation = new System.Drawing.Point(0, 0);
  			this.butToday.Autosize = true;
  			this.butToday.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle;
  			this.butToday.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver;
  			this.butToday.CornerRadius = 4F;
  			this.butToday.Location = new System.Drawing.Point(95, 54);
  			this.butToday.Name = "butToday";
  			this.butToday.Size = new System.Drawing.Size(77, 24);
  			this.butToday.TabIndex = 220;
  			this.butToday.Text = "Today";
  			this.butToday.Click += new System.EventHandler(this.butToday_Click);
  			// 
  			// checkShowDetail
  			// 
  			this.checkShowDetail.Checked = true;
  			this.checkShowDetail.CheckState = System.Windows.Forms.CheckState.Checked;
  			this.checkShowDetail.Location = new System.Drawing.Point(8, 196);
  			this.checkShowDetail.Name = "checkShowDetail";
  			this.checkShowDetail.Size = new System.Drawing.Size(164, 18);
  			this.checkShowDetail.TabIndex = 219;
  			this.checkShowDetail.Text = "Show Proc Breakdowns";
  			this.checkShowDetail.UseVisualStyleBackColor = true;
  			this.checkShowDetail.Click += new System.EventHandler(this.checkShowDetail_Click);
  			// 
  			// butDatesAll
  			// 
  			this.butDatesAll.AdjustImageLocation = new System.Drawing.Point(0, 0);
  			this.butDatesAll.Autosize = true;
  			this.butDatesAll.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle;
  			this.butDatesAll.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver;
  			this.butDatesAll.CornerRadius = 4F;
  			this.butDatesAll.Location = new System.Drawing.Point(95, 132);
  			this.butDatesAll.Name = "butDatesAll";
  			this.butDatesAll.Size = new System.Drawing.Size(77, 24);
  			this.butDatesAll.TabIndex = 218;
  			this.butDatesAll.Text = "All Dates";
  			this.butDatesAll.Click += new System.EventHandler(this.butDatesAll_Click);
  			// 
  			// but90days
  			// 
  			this.but90days.AdjustImageLocation = new System.Drawing.Point(0, 0);
  			this.but90days.Autosize = true;
  			this.but90days.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle;
  			this.but90days.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver;
  			this.but90days.CornerRadius = 4F;
  			this.but90days.Location = new System.Drawing.Point(95, 106);
  			this.but90days.Name = "but90days";
  			this.but90days.Size = new System.Drawing.Size(77, 24);
  			this.but90days.TabIndex = 217;
  			this.but90days.Text = "Last 90 Days";
  			this.but90days.Click += new System.EventHandler(this.but90days_Click);
  			// 
  			// but45days
  			// 
  			this.but45days.AdjustImageLocation = new System.Drawing.Point(0, 0);
  			this.but45days.Autosize = true;
  			this.but45days.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle;
  			this.but45days.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver;
  			this.but45days.CornerRadius = 4F;
  			this.but45days.Location = new System.Drawing.Point(95, 80);
  			this.but45days.Name = "but45days";
  			this.but45days.Size = new System.Drawing.Size(77, 24);
  			this.but45days.TabIndex = 216;
  			this.but45days.Text = "Last 45 Days";
  			this.but45days.Click += new System.EventHandler(this.but45days_Click);
  			// 
  			// butRefresh
  			// 
  			this.butRefresh.AdjustImageLocation = new System.Drawing.Point(0, 0);
  			this.butRefresh.Autosize = true;
  			this.butRefresh.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle;
  			this.butRefresh.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver;
  			this.butRefresh.CornerRadius = 4F;
  			this.butRefresh.Location = new System.Drawing.Point(95, 158);
  			this.butRefresh.Name = "butRefresh";
  			this.butRefresh.Size = new System.Drawing.Size(77, 24);
  			this.butRefresh.TabIndex = 214;
  			this.butRefresh.Text = "Refresh";
  			this.butRefresh.Click += new System.EventHandler(this.butRefresh_Click);
  			// 
  			// labelEndDate
  			// 
  			this.labelEndDate.Location = new System.Drawing.Point(2, 34);
  			this.labelEndDate.Name = "labelEndDate";
  			this.labelEndDate.Size = new System.Drawing.Size(91, 14);
  			this.labelEndDate.TabIndex = 211;
  			this.labelEndDate.Text = "End Date";
  			this.labelEndDate.TextAlign = System.Drawing.ContentAlignment.TopRight;
  			// 
  			// labelStartDate
  			// 
  			this.labelStartDate.Location = new System.Drawing.Point(8, 11);
  			this.labelStartDate.Name = "labelStartDate";
  			this.labelStartDate.Size = new System.Drawing.Size(84, 14);
  			this.labelStartDate.TabIndex = 210;
  			this.labelStartDate.Text = "Start Date";
  			this.labelStartDate.TextAlign = System.Drawing.ContentAlignment.TopRight;
  			// 
  			// textDateEnd
  			// 
  			this.textDateEnd.Location = new System.Drawing.Point(95, 31);
  			this.textDateEnd.Name = "textDateEnd";
  			this.textDateEnd.Size = new System.Drawing.Size(77, 20);
  			this.textDateEnd.TabIndex = 213;
  			// 
  			// textDateStart
  			// 
  			this.textDateStart.BackColor = System.Drawing.SystemColors.Window;
  			this.textDateStart.ForeColor = System.Drawing.SystemColors.WindowText;
  			this.textDateStart.Location = new System.Drawing.Point(95, 8);
  			this.textDateStart.Name = "textDateStart";
  			this.textDateStart.Size = new System.Drawing.Size(77, 20);
  			this.textDateStart.TabIndex = 212;
  			// 
  			// groupBoxIndIns
  			// 
  			this.groupBoxIndIns.Controls.Add(this.textPriDed);
  			this.groupBoxIndIns.Controls.Add(this.textPriUsed);
  			this.groupBoxIndIns.Controls.Add(this.textPriDedRem);
  			this.groupBoxIndIns.Controls.Add(this.textPriPend);
  			this.groupBoxIndIns.Controls.Add(this.textPriRem);
  			this.groupBoxIndIns.Controls.Add(this.textPriMax);
  			this.groupBoxIndIns.Controls.Add(this.textSecRem);
  			this.groupBoxIndIns.Controls.Add(this.label10);
  			this.groupBoxIndIns.Controls.Add(this.textSecPend);
  			this.groupBoxIndIns.Controls.Add(this.label11);
  			this.groupBoxIndIns.Controls.Add(this.label18);
  			this.groupBoxIndIns.Controls.Add(this.label12);
  			this.groupBoxIndIns.Controls.Add(this.label13);
  			this.groupBoxIndIns.Controls.Add(this.textSecDedRem);
  			this.groupBoxIndIns.Controls.Add(this.label14);
  			this.groupBoxIndIns.Controls.Add(this.label15);
  			this.groupBoxIndIns.Controls.Add(this.textSecMax);
  			this.groupBoxIndIns.Controls.Add(this.label16);
  			this.groupBoxIndIns.Controls.Add(this.textSecDed);
  			this.groupBoxIndIns.Controls.Add(this.textSecUsed);
  			this.groupBoxIndIns.Location = new System.Drawing.Point(556, 144);
  			this.groupBoxIndIns.Name = "groupBoxIndIns";
  			this.groupBoxIndIns.Size = new System.Drawing.Size(193, 160);
  			this.groupBoxIndIns.TabIndex = 219;
  			this.groupBoxIndIns.TabStop = false;
  			this.groupBoxIndIns.Text = "Individual Insurance";
  			this.groupBoxIndIns.Visible = false;
  			// 
  			// textPriDed
  			// 
  			this.textPriDed.BackColor = System.Drawing.Color.White;
  			this.textPriDed.Location = new System.Drawing.Point(71, 55);
  			this.textPriDed.Name = "textPriDed";
  			this.textPriDed.ReadOnly = true;
  			this.textPriDed.Size = new System.Drawing.Size(60, 20);
  			this.textPriDed.TabIndex = 45;
  			this.textPriDed.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
  			// 
  			// textPriUsed
  			// 
  			this.textPriUsed.BackColor = System.Drawing.Color.White;
  			this.textPriUsed.Location = new System.Drawing.Point(71, 95);
  			this.textPriUsed.Name = "textPriUsed";
  			this.textPriUsed.ReadOnly = true;
  			this.textPriUsed.Size = new System.Drawing.Size(60, 20);
  			this.textPriUsed.TabIndex = 44;
  			this.textPriUsed.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
  			// 
  			// textPriDedRem
  			// 
  			this.textPriDedRem.BackColor = System.Drawing.Color.White;
  			this.textPriDedRem.Location = new System.Drawing.Point(71, 75);
  			this.textPriDedRem.Name = "textPriDedRem";
  			this.textPriDedRem.ReadOnly = true;
  			this.textPriDedRem.Size = new System.Drawing.Size(60, 20);
  			this.textPriDedRem.TabIndex = 51;
  			this.textPriDedRem.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
  			// 
  			// textPriPend
  			// 
  			this.textPriPend.BackColor = System.Drawing.Color.White;
  			this.textPriPend.Location = new System.Drawing.Point(71, 115);
  			this.textPriPend.Name = "textPriPend";
  			this.textPriPend.ReadOnly = true;
  			this.textPriPend.Size = new System.Drawing.Size(60, 20);
  			this.textPriPend.TabIndex = 43;
  			this.textPriPend.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
  			// 
  			// textPriRem
  			// 
  			this.textPriRem.BackColor = System.Drawing.Color.White;
  			this.textPriRem.Location = new System.Drawing.Point(71, 135);
  			this.textPriRem.Name = "textPriRem";
  			this.textPriRem.ReadOnly = true;
  			this.textPriRem.Size = new System.Drawing.Size(60, 20);
  			this.textPriRem.TabIndex = 42;
  			this.textPriRem.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
  			// 
  			// textPriMax
  			// 
  			this.textPriMax.BackColor = System.Drawing.Color.White;
  			this.textPriMax.Location = new System.Drawing.Point(71, 35);
  			this.textPriMax.Name = "textPriMax";
  			this.textPriMax.ReadOnly = true;
  			this.textPriMax.Size = new System.Drawing.Size(60, 20);
  			this.textPriMax.TabIndex = 38;
  			this.textPriMax.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
  			// 
  			// textSecRem
  			// 
  			this.textSecRem.BackColor = System.Drawing.Color.White;
  			this.textSecRem.Location = new System.Drawing.Point(130, 135);
  			this.textSecRem.Name = "textSecRem";
  			this.textSecRem.ReadOnly = true;
  			this.textSecRem.Size = new System.Drawing.Size(60, 20);
  			this.textSecRem.TabIndex = 46;
  			this.textSecRem.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
  			// 
  			// label10
  			// 
  
gt: 			this.label10.Location = new System.Drawing.Point(73, 16);