context: using System;
  using System.Drawing;
  using System.Collections;
  using System.ComponentModel;
  using System.Windows.Forms;
  using OpenDentBusiness;
  using System.Collections.Generic;
  
  namespace OpenDental{
  	/// <summary>
  	/// Summary description for FormBasicTemplate.
  	/// </summary>
  	public class FormRepeatChargeEdit : System.Windows.Forms.Form{
  		private OpenDental.UI.Button butCancel;
  		private OpenDental.UI.Button butOK;
  		/// <summary>
  		/// Required designer variable.
  		/// </summary>
  		private System.ComponentModel.Container components = null;
  		///<summary></summary>
  		public bool IsNew;
  		private System.Windows.Forms.Label label1;
  		private System.Windows.Forms.TextBox textCode;
  		private System.Windows.Forms.Label label2;
  		private OpenDental.ValidDouble textChargeAmt;
  		private OpenDental.ValidDate textDateStart;
  		private System.Windows.Forms.Label label3;
  		private System.Windows.Forms.Label label4;
  		private OpenDental.ValidDate textDateStop;
  		private System.Windows.Forms.TextBox textNote;
  		private System.Windows.Forms.Label label5;
  		private System.Windows.Forms.TextBox textDesc;
  		private System.Windows.Forms.Label label6;
  		private OpenDental.UI.Button butDelete;
  		private System.Windows.Forms.Label label7;
  		private CheckBox checkCopyNoteToProc;
  		private Label label8;
  		private Label label9;
  		private UI.Button butMaunal;
  		private CheckBox checkCreatesClaim;
  		private CheckBox checkIsEnabled;
  		private TextBox textTotalAmount;
  		private TextBox textNumOfCharges;
  		private Label label10;
  		private GroupBox groupBox1;
  		private UI.Button butCalculate;
  		private RepeatCharge RepeatCur;
  
  		///<summary></summary>
  		public FormRepeatChargeEdit(RepeatCharge repeatCur)
  		{
  			//
  			// Required for Windows Form Designer support
  			//
  			InitializeComponent();
  			Lan.F(this);
  			RepeatCur=repeatCur;
  		}
  
  		/// <summary>
  		/// Clean up any resources being used.
  		/// </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(FormRepeatChargeEdit));
  			this.label1 = new System.Windows.Forms.Label();
  			this.textCode = new System.Windows.Forms.TextBox();
  			this.label2 = new System.Windows.Forms.Label();
  			this.label3 = new System.Windows.Forms.Label();
  			this.label4 = new System.Windows.Forms.Label();
  			this.textNote = new System.Windows.Forms.TextBox();
  			this.label5 = new System.Windows.Forms.Label();
  			this.textDesc = new System.Windows.Forms.TextBox();
  			this.label6 = new System.Windows.Forms.Label();
  			this.label7 = new System.Windows.Forms.Label();
  			this.checkCopyNoteToProc = new System.Windows.Forms.CheckBox();
  			this.label8 = new System.Windows.Forms.Label();
  			this.label9 = new System.Windows.Forms.Label();
  			this.checkCreatesClaim = new System.Windows.Forms.CheckBox();
  			this.checkIsEnabled = new System.Windows.Forms.CheckBox();
  			this.textTotalAmount = new System.Windows.Forms.TextBox();
  			this.textNumOfCharges = new System.Windows.Forms.TextBox();
  			this.label10 = new System.Windows.Forms.Label();
  			this.groupBox1 = new System.Windows.Forms.GroupBox();
  			this.butCalculate = new OpenDental.UI.Button();
  			this.butMaunal = new OpenDental.UI.Button();
  			this.butDelete = new OpenDental.UI.Button();
  			this.textDateStop = new OpenDental.ValidDate();
  			this.textDateStart = new OpenDental.ValidDate();
  			this.textChargeAmt = new OpenDental.ValidDouble();
  			this.butOK = new OpenDental.UI.Button();
  			this.butCancel = new OpenDental.UI.Button();
  			this.groupBox1.SuspendLayout();
  			this.SuspendLayout();
  			// 
  			// label1
  			// 
  			this.label1.Location = new System.Drawing.Point(4, 19);
  			this.label1.Name = "label1";
  			this.label1.Size = new System.Drawing.Size(156, 16);
  			this.label1.TabIndex = 2;
  			this.label1.Text = "Code";
  			this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
  			// 
  			// textCode
  			// 
  			this.textCode.Location = new System.Drawing.Point(162, 17);
  			this.textCode.MaxLength = 15;
  			this.textCode.Name = "textCode";
  			this.textCode.ReadOnly = true;
  			this.textCode.Size = new System.Drawing.Size(100, 20);
  			this.textCode.TabIndex = 3;
  			// 
  			// label2
  			// 
  			this.label2.Location = new System.Drawing.Point(4, 139);
  			this.label2.Name = "label2";
  			this.label2.Size = new System.Drawing.Size(156, 16);
  			this.label2.TabIndex = 4;
  			this.label2.Text = "Charge Amount";
  			this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
  			// 
  			// label3
  			// 
  			this.label3.Location = new System.Drawing.Point(4, 168);
  			this.label3.Name = "label3";
  			this.label3.Size = new System.Drawing.Size(156, 16);
  			this.label3.TabIndex = 7;
  			this.label3.Text = "Date Start";
  			this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
  			// 
  			// label4
  			// 
  			this.label4.Location = new System.Drawing.Point(4, 196);
  			this.label4.Name = "label4";
  			this.label4.Size = new System.Drawing.Size(156, 16);
  			this.label4.TabIndex = 9;
  			this.label4.Text = "Date Stop";
  			this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
  			// 
  			// textNote
  			// 
  			this.textNote.Location = new System.Drawing.Point(162, 260);
  			this.textNote.MaxLength = 10000;
  			this.textNote.Multiline = true;
  			this.textNote.Name = "textNote";
  			this.textNote.Size = new System.Drawing.Size(424, 114);
  			this.textNote.TabIndex = 11;
  			// 
  			// label5
  			// 
  			this.label5.Location = new System.Drawing.Point(4, 263);
  			this.label5.Name = "label5";
  			this.label5.Size = new System.Drawing.Size(156, 16);
  			this.label5.TabIndex = 10;
  			this.label5.Text = "Note";
  			this.label5.TextAlign = System.Drawing.ContentAlignment.TopRight;
  			// 
  			// textDesc
  			// 
  			this.textDesc.BackColor = System.Drawing.SystemColors.Control;
  			this.textDesc.Location = new System.Drawing.Point(267, 17);
  			this.textDesc.Name = "textDesc";
  			this.textDesc.Size = new System.Drawing.Size(241, 20);
  			this.textDesc.TabIndex = 40;
  			// 
  			// label6
  			// 
  			this.label6.Location = new System.Drawing.Point(265, 1);
  			this.label6.Name = "label6";
  			this.label6.Size = new System.Drawing.Size(224, 16);
  			this.label6.TabIndex = 39;
  			this.label6.Text = "Procedure Description:";
  			this.label6.TextAlign = System.Drawing.ContentAlignment.BottomLeft;
  			// 
  			// label7
  			// 
  			this.label7.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
  			this.label7.Location = new System.Drawing.Point(128, 491);
  			this.label7.Name = "label7";
  			this.label7.Size = new System.Drawing.Size(238, 29);
  			this.label7.TabIndex = 42;
  			this.label7.Text = "It\'s OK to delete an obsolete repeating charge.   It does not affect any charges " +
      "already billed.";
  			this.label7.TextAlign = System.Drawing.ContentAlignment.BottomLeft;
  			// 
  			// checkCopyNoteToProc
  			// 
  			this.checkCopyNoteToProc.Location = new System.Drawing.Point(162, 378);
  			this.checkCopyNoteToProc.Name = "checkCopyNoteToProc";
  			this.checkCopyNoteToProc.Size = new System.Drawing.Size(250, 18);
  			this.checkCopyNoteToProc.TabIndex = 43;
  			this.checkCopyNoteToProc.Text = "Copy note to procedure billing note.";
  			this.checkCopyNoteToProc.UseVisualStyleBackColor = true;
  			// 
  			// label8
  			// 
  			this.label8.Location = new System.Drawing.Point(17, 22);
  			this.label8.Name = "label8";
  			this.label8.Size = new System.Drawing.Size(136, 16);
  			this.label8.TabIndex = 44;
  			this.label8.Text = "Total Amount";
  			this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
  			// 
  			// label9
  			// 
  			this.label9.Location = new System.Drawing.Point(17, 48);
  			this.label9.Name = "label9";
  			this.label9.Size = new System.Drawing.Size(136, 16);
  			this.label9.TabIndex = 46;
  			this.label9.Text = "Number of Charges";
  			this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
  			// 
  			// checkCreatesClaim
  			// 
  			this.checkCreatesClaim.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
  			this.checkCreatesClaim.Location = new System.Drawing.Point(7, 218);
  			this.checkCreatesClaim.Name = "checkCreatesClaim";
  			this.checkCreatesClaim.Size = new System.Drawing.Size(169, 18);
  			this.checkCreatesClaim.TabIndex = 49;
  			this.checkCreatesClaim.Text = "Creates Claim";
  			this.checkCreatesClaim.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
  			this.checkCreatesClaim.UseVisualStyleBackColor = true;
  			// 
  			// checkIsEnabled
  			// 
  			this.checkIsEnabled.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
  			this.checkIsEnabled.Location = new System.Drawing.Point(7, 239);
  			this.checkIsEnabled.Name = "checkIsEnabled";
  
gt: 			this.checkIsEnabled.Size = new System.Drawing.Size(169, 18);