context: using System;
  using System.Drawing;
  using System.Collections;
  using System.Collections.Generic;
  using System.ComponentModel;
  using System.Globalization;
  using System.Windows.Forms;
  using OpenDentBusiness;
  
  namespace OpenDental{
  	/// <summary>
  	/// Summary description for FormBasicTemplate.
  	/// </summary>
  	public class FormLanguagesUsed:System.Windows.Forms.Form {
  		private OpenDental.UI.Button butCancel;
  		private ListBox listAvailable;
  		private Label label1;
  		/// <summary>
  		/// Required designer variable.
  		/// </summary>
  		private System.ComponentModel.Container components = null;
  		private Label label2;
  		private Label label3;
  		private ListBox listUsed;
  		private OpenDental.UI.Button butOK;
  		private OpenDental.UI.Button butAdd;
  		private OpenDental.UI.Button butDelete;
  		private CultureInfo[] AllCultures;
  		private OpenDental.UI.Button butUp;
  		private OpenDental.UI.Button butDown;
  		private TextBox textCustom;
  		private Label label4;
  		private UI.Button butAddCustom;
  		private ComboBox comboLanguagesIndicateNone;
  		private Label label5;
  		private List<string> LangsUsed;
  
  		///<summary></summary>
  		public FormLanguagesUsed() {
  			//
  			// Required for Windows Form Designer support
  			//
  			InitializeComponent();
  			Lan.F(this);
  		}
  
  		///<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(FormLanguagesUsed));
  			this.listAvailable = new System.Windows.Forms.ListBox();
  			this.label1 = new System.Windows.Forms.Label();
  			this.label2 = new System.Windows.Forms.Label();
  			this.label3 = new System.Windows.Forms.Label();
  			this.listUsed = new System.Windows.Forms.ListBox();
  			this.textCustom = new System.Windows.Forms.TextBox();
  			this.label4 = new System.Windows.Forms.Label();
  			this.butAddCustom = new OpenDental.UI.Button();
  			this.butDown = new OpenDental.UI.Button();
  			this.butUp = new OpenDental.UI.Button();
  			this.butDelete = new OpenDental.UI.Button();
  			this.butAdd = new OpenDental.UI.Button();
  			this.butOK = new OpenDental.UI.Button();
  			this.butCancel = new OpenDental.UI.Button();
  			this.comboLanguagesIndicateNone = new System.Windows.Forms.ComboBox();
  			this.label5 = new System.Windows.Forms.Label();
  			this.SuspendLayout();
  			// 
  			// listAvailable
  			// 
  			this.listAvailable.FormattingEnabled = true;
  			this.listAvailable.Location = new System.Drawing.Point(32,107);
  			this.listAvailable.Name = "listAvailable";
  			this.listAvailable.Size = new System.Drawing.Size(278,394);
  			this.listAvailable.TabIndex = 1;
  			// 
  			// label1
  			// 
  			this.label1.Location = new System.Drawing.Point(30,80);
  			this.label1.Name = "label1";
  			this.label1.Size = new System.Drawing.Size(281,23);
  			this.label1.TabIndex = 2;
  			this.label1.Text = "All Languages";
  			this.label1.TextAlign = System.Drawing.ContentAlignment.BottomLeft;
  			// 
  			// label2
  			// 
  			this.label2.Location = new System.Drawing.Point(29,26);
  			this.label2.Name = "label2";
  			this.label2.Size = new System.Drawing.Size(474,53);
  			this.label2.TabIndex = 3;
  			this.label2.Text = "This window lets you define which languages will be available to assign to patien" +
      "ts.\r\nThis will not change the language of the user interface.\r\nIt will only be u" +
      "sed when interacting with patients.";
  			// 
  			// label3
  			// 
  			this.label3.Location = new System.Drawing.Point(444,80);
  			this.label3.Name = "label3";
  			this.label3.Size = new System.Drawing.Size(281,23);
  			this.label3.TabIndex = 5;
  			this.label3.Text = "Languages used by patients";
  			this.label3.TextAlign = System.Drawing.ContentAlignment.BottomLeft;
  			// 
  			// listUsed
  			// 
  			this.listUsed.FormattingEnabled = true;
  			this.listUsed.Location = new System.Drawing.Point(446,107);
  			this.listUsed.Name = "listUsed";
  			this.listUsed.Size = new System.Drawing.Size(278,134);
  			this.listUsed.TabIndex = 4;
  			// 
  			// textCustom
  			// 
  			this.textCustom.Location = new System.Drawing.Point(32,531);
  			this.textCustom.Name = "textCustom";
  			this.textCustom.Size = new System.Drawing.Size(278,20);
  			this.textCustom.TabIndex = 11;
  			// 
  			// label4
  			// 
  			this.label4.Location = new System.Drawing.Point(30,504);
  			this.label4.Name = "label4";
  			this.label4.Size = new System.Drawing.Size(281,23);
  			this.label4.TabIndex = 12;
  			this.label4.Text = "Custom";
  			this.label4.TextAlign = System.Drawing.ContentAlignment.BottomLeft;
  			// 
  			// butAddCustom
  			// 
  			this.butAddCustom.AdjustImageLocation = new System.Drawing.Point(0,0);
  			this.butAddCustom.Autosize = true;
  			this.butAddCustom.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle;
  			this.butAddCustom.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver;
  			this.butAddCustom.CornerRadius = 4F;
  			this.butAddCustom.Image = global::OpenDental.Properties.Resources.Right;
  			this.butAddCustom.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
  			this.butAddCustom.Location = new System.Drawing.Point(340,527);
  			this.butAddCustom.Name = "butAddCustom";
  			this.butAddCustom.Size = new System.Drawing.Size(75,26);
  			this.butAddCustom.TabIndex = 13;
  			this.butAddCustom.Text = "Add";
  			this.butAddCustom.Click += new System.EventHandler(this.butAddCustom_Click);
  			// 
  			// butDown
  			// 
  			this.butDown.AdjustImageLocation = new System.Drawing.Point(0,0);
  			this.butDown.Autosize = true;
  			this.butDown.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle;
  			this.butDown.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver;
  			this.butDown.CornerRadius = 4F;
  			this.butDown.Image = global::OpenDental.Properties.Resources.down;
  			this.butDown.Location = new System.Drawing.Point(618,250);
  			this.butDown.Name = "butDown";
  			this.butDown.Size = new System.Drawing.Size(53,26);
  			this.butDown.TabIndex = 10;
  			this.butDown.Click += new System.EventHandler(this.butDown_Click);
  			// 
  			// butUp
  			// 
  			this.butUp.AdjustImageLocation = new System.Drawing.Point(0,0);
  			this.butUp.Autosize = true;
  			this.butUp.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle;
  			this.butUp.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver;
  			this.butUp.CornerRadius = 4F;
  			this.butUp.Image = global::OpenDental.Properties.Resources.up;
  			this.butUp.Location = new System.Drawing.Point(547,250);
  			this.butUp.Name = "butUp";
  			this.butUp.Size = new System.Drawing.Size(53,26);
  			this.butUp.TabIndex = 9;
  			this.butUp.Click += new System.EventHandler(this.butUp_Click);
  			// 
  			// butDelete
  			// 
  			this.butDelete.AdjustImageLocation = new System.Drawing.Point(0,0);
  			this.butDelete.Autosize = true;
  			this.butDelete.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle;
  			this.butDelete.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver;
  			this.butDelete.CornerRadius = 4F;
  			this.butDelete.Image = global::OpenDental.Properties.Resources.deleteX;
  			this.butDelete.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
  			this.butDelete.Location = new System.Drawing.Point(446,250);
  			this.butDelete.Name = "butDelete";
  			this.butDelete.Size = new System.Drawing.Size(83,26);
  			this.butDelete.TabIndex = 8;
  			this.butDelete.Text = "Delete";
  			this.butDelete.Click += new System.EventHandler(this.butDelete_Click);
  			// 
  			// butAdd
  			// 
  			this.butAdd.AdjustImageLocation = new System.Drawing.Point(0,0);
  			this.butAdd.Autosize = true;
  			this.butAdd.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle;
  			this.butAdd.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver;
  			this.butAdd.CornerRadius = 4F;
  			this.butAdd.Image = global::OpenDental.Properties.Resources.Right;
  			this.butAdd.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
  			this.butAdd.Location = new System.Drawing.Point(340,107);
  			this.butAdd.Name = "butAdd";
  			this.butAdd.Size = new System.Drawing.Size(75,26);
  			this.butAdd.TabIndex = 7;
  			this.butAdd.Text = "Add";
  			this.butAdd.Click += new System.EventHandler(this.butAdd_Click);
  			// 
  			// 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(649,486);
  			this.butOK.Name = "butOK";
  
gt: 			this.butOK.Size = new System.Drawing.Size(75,26);