/// <summary> /// Sets the controls in tabPageStatus /// </summary> void Initialize_PageStatus() { // tabPageStatus tabPageStatus.Name = "tabPageStatus"; tabPageStatus.Text = Language.T("Status"); tabPageStatus.ImageIndex = 0; tabPageStatus.Resize += new EventHandler(TabPageStatus_Resize); // Panel Connection pnlConnection = new Fancy_Panel(Language.T("Connection Status")); pnlConnection.Parent = tabPageStatus; // lblConnection lblConnection = new Label(); lblConnection.Name = "lblConnection"; lblConnection.Parent = pnlConnection; lblConnection.Text = Language.T("Not Connected. You have to connect to a MetaTrader terminal."); lblConnection.TextAlign = ContentAlignment.MiddleLeft; // Panel Data Info pnlDataInfoBase = new Fancy_Panel(Language.T("Data Info")); pnlDataInfoBase.Parent = tabPageStatus; pnlDataInfoBase.Padding = new Padding(2, (int)pnlDataInfoBase.CaptionHeight, 2, 2); tbxDataInfo = new TextBox(); tbxDataInfo.Parent = pnlDataInfoBase; tbxDataInfo.BorderStyle = BorderStyle.None; tbxDataInfo.Dock = DockStyle.Fill; tbxDataInfo.TabStop = false; tbxDataInfo.Multiline = true; tbxDataInfo.AcceptsReturn = true; tbxDataInfo.AcceptsTab = true; tbxDataInfo.WordWrap = false; tbxDataInfo.ScrollBars = ScrollBars.Vertical; tbxDataInfo.Font = new Font("Courier New", 8.25F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(204))); pnlDataInfoButtons = new Panel(); pnlDataInfoButtons.Parent = pnlDataInfoBase; pnlDataInfoButtons.Dock = DockStyle.Top; pnlDataInfoButtons.Paint += new PaintEventHandler(PnlDataInfoButtons_Paint); btnShowMarketInfo = new Button(); btnShowMarketInfo.Parent = pnlDataInfoButtons; btnShowMarketInfo.Text = Language.T("Market Info"); btnShowMarketInfo.Click += new EventHandler(BtnShowMarketInfo_Click); btnShowMarketInfo.UseVisualStyleBackColor = true; btnShowAccountInfo = new Button(); btnShowAccountInfo.Parent = pnlDataInfoButtons; btnShowAccountInfo.Text = Language.T("Account Info"); btnShowAccountInfo.Click += new EventHandler(BtnShowAccountInfo_Click); btnShowAccountInfo.UseVisualStyleBackColor = true; btnShowBars = new Button(); btnShowBars.Parent = pnlDataInfoButtons; btnShowBars.Text = Language.T("Loaded Bars"); btnShowBars.Click += new EventHandler(BtnShowBars_Click); btnShowBars.UseVisualStyleBackColor = true; // Panel Market Info pnlMarketInfo = new Info_Panel(Language.T("Market Information")); pnlMarketInfo.Parent = tabPageStatus; // Panel Useful Links pnlUsefulLinks = new LinkPanel(Language.T("Useful Links")); pnlUsefulLinks.Parent = tabPageStatus; // Panel Forex Brokers pnlForexBrokers = new LinkPanel(Language.T("Forex Brokers")); pnlForexBrokers.Parent = tabPageStatus; SetStatusColors(); return; }