using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; namespace TeamXBMC.Translator { /// /// Summary description for NewLanguageForm. /// public class NewLanguageForm : System.Windows.Forms.Form { private System.Windows.Forms.Button buttonOK; private System.Windows.Forms.Button buttonCancel; private System.Windows.Forms.Label label1; private System.Windows.Forms.TextBox textBoxName; private System.Windows.Forms.Label label2; /// /// Required designer variable. /// private System.ComponentModel.Container components = null; public NewLanguageForm() { // // Required for Windows Form Designer support // InitializeComponent(); // // TODO: Add any constructor code after InitializeComponent call // } /// /// Clean up any resources being used. /// protected override void Dispose( bool disposing ) { if( disposing ) { if(components != null) { components.Dispose(); } } base.Dispose( disposing ); } #region Windows Form Designer generated code /// /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// private void InitializeComponent() { this.buttonOK = new System.Windows.Forms.Button(); this.buttonCancel = new System.Windows.Forms.Button(); this.label1 = new System.Windows.Forms.Label(); this.textBoxName = new System.Windows.Forms.TextBox(); this.label2 = new System.Windows.Forms.Label(); this.SuspendLayout(); // // buttonOK // this.buttonOK.DialogResult = System.Windows.Forms.DialogResult.OK; this.buttonOK.FlatStyle = System.Windows.Forms.FlatStyle.System; this.buttonOK.Location = new System.Drawing.Point(72, 88); this.buttonOK.Name = "buttonOK"; this.buttonOK.TabIndex = 4; this.buttonOK.Text = "OK"; // // buttonCancel // this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.buttonCancel.FlatStyle = System.Windows.Forms.FlatStyle.System; this.buttonCancel.Location = new System.Drawing.Point(160, 88); this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.TabIndex = 5; this.buttonCancel.Text = "Cancel"; // // label1 // this.label1.Location = new System.Drawing.Point(8, 48); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(56, 23); this.label1.TabIndex = 2; this.label1.Text = "Name:"; // // textBoxName // this.textBoxName.Location = new System.Drawing.Point(80, 48); this.textBoxName.Name = "textBoxName"; this.textBoxName.Size = new System.Drawing.Size(152, 20); this.textBoxName.TabIndex = 3; this.textBoxName.Text = ""; // // label2 // this.label2.Location = new System.Drawing.Point(8, 8); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(224, 32); this.label2.TabIndex = 1; this.label2.Text = "Please enter the country name of the new language to be created"; // // NewLanguageForm // this.AcceptButton = this.buttonOK; this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.CancelButton = this.buttonCancel; this.ClientSize = new System.Drawing.Size(242, 120); this.Controls.Add(this.label2); this.Controls.Add(this.textBoxName); this.Controls.Add(this.label1); this.Controls.Add(this.buttonCancel); this.Controls.Add(this.buttonOK); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "NewLanguageForm"; this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.Text = "New Language"; this.ResumeLayout(false); } #endregion #region Properties /// /// Gets the name of the language to be created /// public string LanguageName { get { return textBoxName.Text; } } #endregion } }