2 * Copyright (C) 2006-2013 Team XBMC
5 * This Program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2, or (at your option)
10 * This Program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with XBMC; see the file COPYING. If not, write to
17 * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
18 * http://www.gnu.org/copyleft/gpl.html
24 using System.Collections;
25 using System.ComponentModel;
26 using System.Windows.Forms;
28 namespace TeamXBMC.Translator
31 /// Summary description for NewLanguageForm.
33 public class NewLanguageForm : System.Windows.Forms.Form
35 private System.Windows.Forms.Button buttonOK;
36 private System.Windows.Forms.Button buttonCancel;
37 private System.Windows.Forms.Label label1;
38 private System.Windows.Forms.TextBox textBoxName;
39 private System.Windows.Forms.Label label2;
41 /// Required designer variable.
43 private System.ComponentModel.Container components = null;
45 public NewLanguageForm()
48 // Required for Windows Form Designer support
50 InitializeComponent();
53 // TODO: Add any constructor code after InitializeComponent call
58 /// Clean up any resources being used.
60 protected override void Dispose( bool disposing )
64 if(components != null)
69 base.Dispose( disposing );
72 #region Windows Form Designer generated code
74 /// Required method for Designer support - do not modify
75 /// the contents of this method with the code editor.
77 private void InitializeComponent()
79 this.buttonOK = new System.Windows.Forms.Button();
80 this.buttonCancel = new System.Windows.Forms.Button();
81 this.label1 = new System.Windows.Forms.Label();
82 this.textBoxName = new System.Windows.Forms.TextBox();
83 this.label2 = new System.Windows.Forms.Label();
88 this.buttonOK.DialogResult = System.Windows.Forms.DialogResult.OK;
89 this.buttonOK.FlatStyle = System.Windows.Forms.FlatStyle.System;
90 this.buttonOK.Location = new System.Drawing.Point(72, 88);
91 this.buttonOK.Name = "buttonOK";
92 this.buttonOK.TabIndex = 4;
93 this.buttonOK.Text = "OK";
97 this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
98 this.buttonCancel.FlatStyle = System.Windows.Forms.FlatStyle.System;
99 this.buttonCancel.Location = new System.Drawing.Point(160, 88);
100 this.buttonCancel.Name = "buttonCancel";
101 this.buttonCancel.TabIndex = 5;
102 this.buttonCancel.Text = "Cancel";
106 this.label1.Location = new System.Drawing.Point(8, 48);
107 this.label1.Name = "label1";
108 this.label1.Size = new System.Drawing.Size(56, 23);
109 this.label1.TabIndex = 2;
110 this.label1.Text = "Name:";
114 this.textBoxName.Location = new System.Drawing.Point(80, 48);
115 this.textBoxName.Name = "textBoxName";
116 this.textBoxName.Size = new System.Drawing.Size(152, 20);
117 this.textBoxName.TabIndex = 3;
118 this.textBoxName.Text = "";
122 this.label2.Location = new System.Drawing.Point(8, 8);
123 this.label2.Name = "label2";
124 this.label2.Size = new System.Drawing.Size(224, 32);
125 this.label2.TabIndex = 1;
126 this.label2.Text = "Please enter the country name of the new language to be created";
130 this.AcceptButton = this.buttonOK;
131 this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
132 this.CancelButton = this.buttonCancel;
133 this.ClientSize = new System.Drawing.Size(242, 120);
134 this.Controls.Add(this.label2);
135 this.Controls.Add(this.textBoxName);
136 this.Controls.Add(this.label1);
137 this.Controls.Add(this.buttonCancel);
138 this.Controls.Add(this.buttonOK);
139 this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
140 this.MaximizeBox = false;
141 this.MinimizeBox = false;
142 this.Name = "NewLanguageForm";
143 this.ShowInTaskbar = false;
144 this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
145 this.Text = "New Language";
146 this.ResumeLayout(false);
154 /// Gets the name of the language to be created
156 public string LanguageName
160 return textBoxName.Text;