public DataDirectory()
{
lblIntro = new Label();
txbDataDirectory = new TextBox();
btnBrowse = new Button();
btnDefault = new Button();
btnCancel = new Button();
btnAccept = new Button();
font = this.Font;
colorText = LayoutColors.ColorControlText;
MaximizeBox = false;
MinimizeBox = false;
ShowInTaskbar = false;
Icon = Data.Icon;
FormBorderStyle = FormBorderStyle.FixedDialog;
AcceptButton = btnAccept;
Text = Language.T("Data Directory");
// Label Intro
lblIntro.Parent = this;
lblIntro.ForeColor = colorText;
lblIntro.BackColor = Color.Transparent;
lblIntro.Text = Language.T("Offline data directory:");
// Data Directory
txbDataDirectory.Parent = this;
txbDataDirectory.BackColor = LayoutColors.ColorControlBack;
txbDataDirectory.ForeColor = colorText;
txbDataDirectory.Text = Data.OfflineDataDir;
//Button Browse
btnBrowse.Parent = this;
btnBrowse.Name = "Browse";
btnBrowse.Text = Language.T("Browse");
btnBrowse.Click += new EventHandler(BtnBrowse_Click);
btnBrowse.UseVisualStyleBackColor = true;
//Button Default
btnDefault.Parent = this;
btnDefault.Name = "Default";
btnDefault.Text = Language.T("Default");
btnDefault.Click += new EventHandler(BtnDefault_Click);
btnDefault.UseVisualStyleBackColor = true;
//Button Cancel
btnCancel.Parent = this;
btnCancel.Text = Language.T("Cancel");
btnCancel.DialogResult = DialogResult.Cancel;
btnCancel.UseVisualStyleBackColor = true;
//Button Accept
btnAccept.Parent = this;
btnAccept.Name = "Accept";
btnAccept.Text = Language.T("Accept");
btnAccept.DialogResult = DialogResult.OK;
btnAccept.UseVisualStyleBackColor = true;
}