public Strategy_Publish()
{
pnlBBCodeBase = new Fancy_Panel();
pnlInfoBase = new Fancy_Panel();
txboxBBCode = new TextBox();
lblInformation = new Label();
btnClose = new Button();
btnConnect = new Button();
// BBCode_viewer
AcceptButton = btnClose;
BackColor = LayoutColors.ColorFormBack;
Icon = Data.Icon;
Controls.Add(btnConnect);
Controls.Add(btnClose);
Controls.Add(pnlBBCodeBase);
Controls.Add(pnlInfoBase);
MinimumSize = new System.Drawing.Size(400, 400);
Text = Language.T("Publish a Strategy");
pnlBBCodeBase.Padding = new Padding(4, 4, 2, 2);
pnlInfoBase.Padding = new Padding(4, 4, 2, 2);
// txboxBBCode
txboxBBCode.Parent = pnlBBCodeBase;
txboxBBCode.BorderStyle = BorderStyle.None;
txboxBBCode.Dock = DockStyle.Fill;
txboxBBCode.BackColor = LayoutColors.ColorControlBack;
txboxBBCode.ForeColor = LayoutColors.ColorControlText;
txboxBBCode.Multiline = true;
txboxBBCode.AcceptsReturn = true;
txboxBBCode.AcceptsTab = true;
txboxBBCode.ScrollBars = ScrollBars.Vertical;
txboxBBCode.KeyDown += new KeyEventHandler(TxboxBBCode_KeyDown);
txboxBBCode.Text = Data.Strategy.GenerateBBCode();
// lblInformation
lblInformation.Parent = pnlInfoBase;
lblInformation.Dock = DockStyle.Fill;
lblInformation.BackColor = Color.Transparent;
lblInformation.ForeColor = LayoutColors.ColorControlText;
string strInfo = Language.T("Publishing a strategy in the program's forum:") + Environment.NewLine +
"1) " + Language.T("Open a new topic in the forum") + " \"Users' strategies\";" + Environment.NewLine +
"2) " + Language.T("Copy / Paste the following code;") + Environment.NewLine +
"3) " + Language.T("Describe the strategy.");
lblInformation.Text = strInfo;
// btnClose
btnClose.Text = Language.T("Close");
btnClose.Click += new System.EventHandler(btnClose_Click);
btnClose.UseVisualStyleBackColor = true;
// btnConnect
btnConnect.Text = Language.T("Connect to") + " http://forexsb.com/forum";
btnConnect.Click += new System.EventHandler(btnConnect_Click);
btnConnect.UseVisualStyleBackColor = true;
}