public New_Translation()
{
// The form
MaximizeBox = false;
MinimizeBox = false;
Icon = Data.Icon;
BackColor = LayoutColors.ColorFormBack;
FormBorderStyle = FormBorderStyle.FixedDialog;
Text = Language.T("New Translation");
// Controls
pnlInput = new Fancy_Panel(Language.T("Common Parameters"));
alblInputNames = new Label[5];
atbxInputValues = new TextBox[5];
btnAccept = new Button();
btnCancel = new Button();
// Input
pnlInput.Parent = this;
// Input Names
string[] asInputNames = new string[] {
Language.T("Language"),
Language.T("File name"),
Language.T("Author"),
Language.T("Website"),
Language.T("Contacts"),
};
// Input Values
string[] asInputValues = new string[] {
"Language",
"Language",
"Your Name",
"http://forexsb.com",
"[email protected]",
};
// Input parameters
for (int i = 0; i < asInputNames.Length; i++)
{
alblInputNames[i] = new Label();
alblInputNames[i].Parent = pnlInput;
alblInputNames[i].ForeColor = LayoutColors.ColorControlText;
alblInputNames[i].BackColor = Color.Transparent;
alblInputNames[i].AutoSize = true;
alblInputNames[i].Text = asInputNames[i];
atbxInputValues[i] = new TextBox();
atbxInputValues[i].Parent = pnlInput;
atbxInputValues[i].Text = asInputValues[i];
}
//Button Cancel
btnCancel.Parent = this;
btnCancel.Text = Language.T("Cancel");
btnCancel.DialogResult = DialogResult.Cancel;
btnCancel.Click += new EventHandler(Btn_Click);
btnCancel.UseVisualStyleBackColor = true;
//Button Accept
btnAccept.Parent = this;
btnAccept.Name = "Accept";
btnAccept.Text = Language.T("Accept");
btnAccept.DialogResult = DialogResult.OK;
btnAccept.Click += new EventHandler(Btn_Click);
btnAccept.UseVisualStyleBackColor = true;
return;
}