示例#1
0
 private void UpdateToGrid(int rowIndex, ucViewOrder.RecordData recordData)
 {
     try
     {
         RecordItem recordItem;
         if (rowIndex == -1)
         {
             recordItem = this.intzaOrderList.AddRecord(1, false);
         }
         else
         {
             recordItem = this.intzaOrderList.Records(rowIndex);
         }
         recordItem.Fields("order_number").Text = recordData.OrderNumber;
         recordItem.Fields("side").Text = recordData.Side;
         recordItem.Fields("stock").Text = recordData.Stock;
         recordItem.Fields("volume").Text = recordData.Volume;
         recordItem.Fields("price").Text = recordData.Price;
         recordItem.Fields("matched").Text = recordData.Matched;
         recordItem.Fields("time").Text = recordData.OrderTimes;
         recordItem.Fields("info").Text = "2";
         recordItem.Fields("published").Text = Utilities.GetPublishedVolumeDisplay(recordData.Volume, recordData.PubVol, recordData.Matched, recordData.OrderStatus);
         string text = string.Empty;
         text = recordData.OrderStatus.Trim();
         if (text != "A" && recordData.ApprUserNo.Trim() != string.Empty)
         {
             text = recordData.OrderStatus + "A";
         }
         if (this.showOnMainForm || ApplicationInfo.SupportFreewill)
         {
             recordItem.Fields("status").Text = text;
         }
         else
         {
             recordItem.Fields("status").Text = Utilities.GetDisplayOrderStatus(text) + " (" + text + ")";
         }
         if (recordData.TrusteeID == 0)
         {
             recordItem.Fields("ttf").Text = string.Empty;
         }
         else
         {
             recordItem.Fields("ttf").Text = recordData.TrusteeID;
         }
         recordItem.Fields("quote").Text = recordData.Quote;
         recordItem.Fields("send_date").Text = recordData.OrderDate;
         recordItem.Fields("key").Text = recordData.OrderNumber + "_" + recordData.OrderDate;
         recordItem.Fields("order_number").FontColor = Color.White;
         if (recordData.Side == "B")
         {
             recordItem.Fields("side").FontColor = Color.Lime;
         }
         else if (recordData.Side == "S")
         {
             recordItem.Fields("side").FontColor = Color.Red;
         }
         else if (recordData.Side == "C")
         {
             recordItem.Fields("side").FontColor = Color.Cyan;
         }
         else if (recordData.Side == "H")
         {
             recordItem.Fields("side").FontColor = Color.Pink;
         }
         else
         {
             recordItem.Fields("side").FontColor = Color.Yellow;
         }
         recordItem.Fields("stock").FontColor = Color.White;
         recordItem.Fields("volume").FontColor = Color.White;
         recordItem.Fields("price").FontColor = Color.White;
         recordItem.Fields("matched").FontColor = Color.Cyan;
         recordItem.Fields("published").FontColor = Color.White;
         recordItem.Fields("time").FontColor = Color.White;
         recordItem.Fields("status").FontColor = Color.Cyan;
         recordItem.Fields("ttf").FontColor = Color.Cyan;
         recordItem.Fields("quote").FontColor = Color.Yellow;
         if (this.CanShowCheckBox(recordData.OrderStatus))
         {
             recordItem.Fields("checkbox").Text = "0";
         }
         else
         {
             recordItem.Fields("checkbox").Text = "";
         }
         if (ApplicationInfo.SupportFreewill)
         {
             recordItem.Fields("offline").Text = (recordData.IsAfterCloseOrder ? "Y" : "N");
         }
         recordItem.Changed = true;
     }
     catch (Exception ex)
     {
         this.ShowError("UpdateToGrid", ex);
     }
 }
示例#2
0
 private void UpdateToGrid_TFEX(int rowIndex, ucViewOrder.RecordData recordData)
 {
     try
     {
         SeriesList.SeriesInformation seriesInformation = ApplicationInfo.SeriesInfo[recordData.Series];
         RecordItem recordItem;
         if (rowIndex == -1)
         {
             recordItem = this.intzaOrderListTFEX.AddRecord(1, false);
         }
         else
         {
             recordItem = this.intzaOrderListTFEX.Records(rowIndex);
         }
         recordItem.Fields("order_number").Text = recordData.OrderNumber;
         if (recordData.Position == "1")
         {
             recordItem.Fields("position").Text = "Open";
         }
         else if (recordData.Position == "2")
         {
             recordItem.Fields("position").Text = "Close";
         }
         recordItem.Fields("side").Text = recordData.Side;
         recordItem.Fields("stock").Text = recordData.Series;
         recordItem.Fields("volume").Text = recordData.Volume;
         if (recordData.Price == "-1")
         {
             recordItem.Fields("price").Text = "MP";
         }
         else if (seriesInformation != null)
         {
             recordItem.Fields("price").Text = Utilities.PriceFormat(recordData.Price, seriesInformation.NumOfDec, 0);
         }
         else
         {
             recordItem.Fields("price").Text = Utilities.PriceFormat(recordData.Price, 2, 0);
         }
         recordItem.Fields("matched").Text = recordData.Matched;
         if (recordData.OrderTimes == null)
         {
             recordData.OrderTimes = string.Empty;
         }
         recordItem.Fields("time").Text = recordData.OrderTimes;
         string text = string.Empty;
         text = recordData.OrderStatus.Trim();
         if (text == "M" || text == "O")
         {
             if (recordData.Volume - recordData.Matched == 0L)
             {
                 recordItem.Fields("published").Text = "0";
             }
             else
             {
                 recordItem.Fields("published").Text = recordData.PubVol;
             }
         }
         else if (text == "R")
         {
             recordItem.Fields("published").Text = string.Empty;
         }
         else
         {
             recordItem.Fields("published").Text = recordData.PubVol;
         }
         recordItem.Fields("status").Text = text;
         if (recordData.Quote == null)
         {
             recordData.Quote = string.Empty;
         }
         if (recordData.Quote != "Y")
         {
             recordItem.Fields("quote").Text = string.Empty;
         }
         else
         {
             recordItem.Fields("quote").Text = recordData.Quote;
         }
         recordItem.Fields("send_date").Text = recordData.OrderDate;
         recordItem.Fields("key").Text = recordData.OrderNumber + "_" + recordData.OrderDate;
         recordItem.Fields("ordType").Text = recordData.OrdType;
         Color fontColor = Color.Yellow;
         if (recordData.Side == "L")
         {
             fontColor = MyColor.CeilingColor;
         }
         else if (recordData.Side == "S")
         {
             fontColor = MyColor.FloorColor;
         }
         recordItem.Fields("order_number").FontColor = Color.White;
         recordItem.Fields("position").FontColor = MyColor.OpenColor;
         recordItem.Fields("side").FontColor = fontColor;
         recordItem.Fields("stock").FontColor = Color.White;
         recordItem.Fields("volume").FontColor = Color.White;
         recordItem.Fields("price").FontColor = Color.White;
         recordItem.Fields("matched").FontColor = Color.Cyan;
         recordItem.Fields("published").FontColor = Color.White;
         recordItem.Fields("status").FontColor = Color.Cyan;
         recordItem.Fields("time").FontColor = Color.White;
         recordItem.Fields("quote").FontColor = Color.Yellow;
         recordItem.Fields("valid").FontColor = fontColor;
         if (this.CanShowCheckBox(recordData.OrderStatus))
         {
             recordItem.Fields("checkbox").Text = 0;
         }
         else
         {
             recordItem.Fields("checkbox").Text = -1;
         }
         recordItem.Changed = true;
     }
     catch (Exception ex)
     {
         this.ShowError("UpdateToGrid_TFXE", ex);
     }
 }
示例#3
0
 private void InitializeComponent()
 {
     this.components = new Container();
     ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(frmMain));
     this.timerCallLoginForm = new System.Windows.Forms.Timer(this.components);
     this.panBottom = new Panel();
     this.btnResizeMD1 = new Button();
     this.ViewOrderBox = new ucViewOrder();
     this.SendOrderBox = new ucSendNewOrder();
     this.BroadcastMessageBox = new ucBroadcastMessage();
     this.timerGetOrderInfo = new System.Windows.Forms.Timer(this.components);
     this.panelSep = new Panel();
     this.panelTop = new Panel();
     this.MarketStateBox = new ucMarketStateBox();
     this.SET2Box = new ucIndexBox();
     this.SETBox = new ucIndexBox();
     this.pici2Logo = new PictureBox();
     this.SectorBox = new ucIndexBox();
     this.btnLogout = new Button();
     this.panelFontAdjust = new Panel();
     this.btnFontDone = new Button();
     this.cbFontSize = new ComboBox();
     this.cbDefaultFontName = new ComboBox();
     this.chbBold = new CheckBox();
     this.toolTip1 = new ToolTip(this.components);
     this.btnShowTickerSlide = new Button();
     this.btnShowSpeedOrderSlide = new Button();
     this.btnNews = new Button();
     this.btnFacebook = new Button();
     this.btnOptions2 = new Button();
     this.btnAdjFont2 = new Button();
     this.panelControlDockR = new Panel();
     this.panelDockR = new Panel();
     this.Smart1ClickBox = new ucSmart1Click();
     this.TickerSlideBox = new ucTickerSlide();
     this.panelMenu = new Panel();
     this.btnAutoTrade = new Button();
     this.btnEservice = new Button();
     this.btnRanking = new Button();
     this.btnBatchOrder = new Button();
     this.btnEfinTools = new Button();
     this.btnMarketInfo = new Button();
     this.btnPortfolio = new Button();
     this.btnViewOrder = new Button();
     this.btnSummary = new Button();
     this.btnTopBBOs = new Button();
     this.btnMarketWatch = new Button();
     this.timerMonitorFeed = new System.Windows.Forms.Timer(this.components);
     this.timer1 = new System.Windows.Forms.Timer(this.components);
     this.panBottom.SuspendLayout();
     this.panelTop.SuspendLayout();
     ((ISupportInitialize)this.pici2Logo).BeginInit();
     this.panelFontAdjust.SuspendLayout();
     this.panelControlDockR.SuspendLayout();
     this.panelDockR.SuspendLayout();
     this.panelMenu.SuspendLayout();
     base.SuspendLayout();
     this.timerCallLoginForm.Interval = 200;
     this.timerCallLoginForm.Tick += new EventHandler(this.timerCallLoginForm_Tick);
     this.panBottom.BackColor = Color.FromArgb(20, 20, 20);
     this.panBottom.Controls.Add(this.btnResizeMD1);
     this.panBottom.Controls.Add(this.ViewOrderBox);
     this.panBottom.Controls.Add(this.SendOrderBox);
     this.panBottom.Controls.Add(this.BroadcastMessageBox);
     this.panBottom.Dock = DockStyle.Bottom;
     this.panBottom.Location = new Point(0, 390);
     this.panBottom.Margin = new Padding(0);
     this.panBottom.Name = "panBottom";
     this.panBottom.Padding = new Padding(1);
     this.panBottom.Size = new Size(1150, 174);
     this.panBottom.TabIndex = 67;
     this.panBottom.Visible = false;
     this.btnResizeMD1.BackColor = Color.FromArgb(30, 30, 30);
     this.btnResizeMD1.FlatAppearance.BorderColor = Color.FromArgb(20, 20, 20);
     this.btnResizeMD1.FlatAppearance.BorderSize = 0;
     this.btnResizeMD1.FlatAppearance.MouseDownBackColor = Color.FromArgb(255, 128, 0);
     this.btnResizeMD1.FlatAppearance.MouseOverBackColor = Color.FromArgb(0, 192, 192);
     this.btnResizeMD1.FlatStyle = FlatStyle.Flat;
     this.btnResizeMD1.ForeColor = Color.DarkGray;
     this.btnResizeMD1.Image = Resources.MovePreviousHS;
     this.btnResizeMD1.Location = new Point(597, 52);
     this.btnResizeMD1.Margin = new Padding(0);
     this.btnResizeMD1.Name = "btnResizeMD1";
     this.btnResizeMD1.Size = new Size(17, 121);
     this.btnResizeMD1.TabIndex = 97;
     this.btnResizeMD1.TabStop = false;
     this.btnResizeMD1.UseVisualStyleBackColor = false;
     this.btnResizeMD1.Visible = false;
     this.btnResizeMD1.Click += new EventHandler(this.btnResizeMD_Click);
     this.ViewOrderBox.BackColor = Color.FromArgb(30, 30, 30);
     this.ViewOrderBox.IsActive = false;
     this.ViewOrderBox.IsLoadingData = false;
     this.ViewOrderBox.IsShowLoadingControl = true;
     this.ViewOrderBox.IsShowNextPage = true;
     this.ViewOrderBox.IsShowToolsBar = true;
     this.ViewOrderBox.Location = new Point(5, 64);
     this.ViewOrderBox.Margin = new Padding(0);
     this.ViewOrderBox.Name = "ViewOrderBox";
     this.ViewOrderBox.ShowOnMainForm = true;
     this.ViewOrderBox.Size = new Size(592, 95);
     this.ViewOrderBox.TabIndex = 93;
     this.ViewOrderBox.Visible = false;
     this.SendOrderBox.AllowDrop = true;
     this.SendOrderBox.BackColor = Color.FromArgb(30, 30, 30);
     this.SendOrderBox.Font = new Font("Microsoft Sans Serif", 8.25f);
     this.SendOrderBox.ForeColor = Color.White;
     this.SendOrderBox.IsActive = false;
     this.SendOrderBox.Location = new Point(1, 1);
     this.SendOrderBox.Margin = new Padding(0);
     this.SendOrderBox.Name = "SendOrderBox";
     this.SendOrderBox.Size = new Size(845, 50);
     this.SendOrderBox.TabIndex = 94;
     this.SendOrderBox.TabStop = false;
     this.SendOrderBox.Visible = false;
     this.SendOrderBox.OnResized += new ucSendNewOrder.OnResizedHandler(this.SendOrderBox_OnResized);
     this.SendOrderBox.OnBoxStyleChanged += new ucSendNewOrder.OnBoxStyleChangedHandler(this.SendOrderBox_OnBoxStyleChanged);
     this.SendOrderBox.OnResizeUpDown += new ucSendNewOrder.OnResizeUpDownHandler(this.SendOrderBox_OnResizeUpDown);
     this.SendOrderBox.OnAccountChanged += new ucSendNewOrder.OnAccountChangedHandler(this.SendOrderBox_OnAccountChanged);
     this.BroadcastMessageBox.BackColor = Color.FromArgb(30, 30, 30);
     this.BroadcastMessageBox.IsFirstOpen = true;
     this.BroadcastMessageBox.Location = new Point(615, 52);
     this.BroadcastMessageBox.Margin = new Padding(1);
     this.BroadcastMessageBox.Name = "BroadcastMessageBox";
     this.BroadcastMessageBox.Padding = new Padding(1);
     this.BroadcastMessageBox.Size = new Size(231, 123);
     this.BroadcastMessageBox.TabIndex = 0;
     this.BroadcastMessageBox.Visible = false;
     this.timerGetOrderInfo.Interval = 1000;
     this.timerGetOrderInfo.Tick += new EventHandler(this.timerGetOrderInfo_Tick);
     this.panelSep.BackColor = Color.LightGray;
     this.panelSep.Cursor = Cursors.HSplit;
     this.panelSep.Location = new Point(22, 378);
     this.panelSep.Name = "panelSep";
     this.panelSep.Size = new Size(799, 3);
     this.panelSep.TabIndex = 69;
     this.panelSep.Visible = false;
     this.panelSep.MouseMove += new MouseEventHandler(this.panelSep_MouseMove);
     this.panelSep.MouseDown += new MouseEventHandler(this.panelSep_MouseDown);
     this.panelSep.MouseUp += new MouseEventHandler(this.panelSep_MouseUp);
     this.panelTop.BackColor = Color.FromArgb(20, 20, 20);
     this.panelTop.Controls.Add(this.MarketStateBox);
     this.panelTop.Controls.Add(this.SET2Box);
     this.panelTop.Controls.Add(this.SETBox);
     this.panelTop.Controls.Add(this.pici2Logo);
     this.panelTop.Controls.Add(this.SectorBox);
     this.panelTop.Dock = DockStyle.Top;
     this.panelTop.Location = new Point(0, 0);
     this.panelTop.MaximumSize = new Size(0, 53);
     this.panelTop.MinimumSize = new Size(0, 53);
     this.panelTop.Name = "panelTop";
     this.panelTop.Size = new Size(1150, 53);
     this.panelTop.TabIndex = 70;
     this.panelTop.Visible = false;
     this.MarketStateBox.AlterMessageCount = 0;
     this.MarketStateBox.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right);
     this.MarketStateBox.BackColor = Color.FromArgb(30, 30, 30);
     this.MarketStateBox.IsAlertStart = false;
     this.MarketStateBox.IsAllowBlinkAlert = false;
     this.MarketStateBox.Location = new Point(10177, 2);
     this.MarketStateBox.Margin = new Padding(4);
     this.MarketStateBox.Name = "MarketStateBox";
     this.MarketStateBox.Size = new Size(170, 49);
     this.MarketStateBox.TabIndex = 62;
     this.MarketStateBox.OnSitchMode += new ucMarketStateBox.SwitchMode(this.MarketStateBox_OnSitchMode);
     this.MarketStateBox.OnCallAlert += new ucMarketStateBox.CallAlert(this.MarketStateBox_OnCallAlert);
     this.SET2Box.Active = false;
     this.SET2Box.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left);
     this.SET2Box.BackColor = Color.Black;
     this.SET2Box.DisplaySector = 0;
     this.SET2Box.DisplaySET = "SET50";
     this.SET2Box.DisplayType = 1;
     this.SET2Box.Location = new Point(383, 2);
     this.SET2Box.Margin = new Padding(4);
     this.SET2Box.Name = "SET2Box";
     this.SET2Box.Size = new Size(270, 49);
     this.SET2Box.TabIndex = 60;
     this.SETBox.Active = false;
     this.SETBox.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left);
     this.SETBox.BackColor = Color.Black;
     this.SETBox.DisplaySector = 0;
     this.SETBox.DisplaySET = "SET";
     this.SETBox.DisplayType = 1;
     this.SETBox.Location = new Point(152, 2);
     this.SETBox.Margin = new Padding(4);
     this.SETBox.Name = "SETBox";
     this.SETBox.Size = new Size(227, 49);
     this.SETBox.TabIndex = 59;
     this.pici2Logo.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left);
     this.pici2Logo.BackColor = Color.Transparent;
     this.pici2Logo.Image = Resources.LOGO;
     this.pici2Logo.Location = new Point(3, 2);
     this.pici2Logo.Name = "pici2Logo";
     this.pici2Logo.Padding = new Padding(5);
     this.pici2Logo.Size = new Size(145, 48);
     this.pici2Logo.SizeMode = PictureBoxSizeMode.StretchImage;
     this.pici2Logo.TabIndex = 12;
     this.pici2Logo.TabStop = false;
     this.SectorBox.Active = false;
     this.SectorBox.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left);
     this.SectorBox.BackColor = Color.Black;
     this.SectorBox.DisplaySector = 1;
     this.SectorBox.DisplaySET = "";
     this.SectorBox.DisplayType = 3;
     this.SectorBox.Location = new Point(656, 2);
     this.SectorBox.Margin = new Padding(4);
     this.SectorBox.Name = "SectorBox";
     this.SectorBox.Size = new Size(222, 49);
     this.SectorBox.TabIndex = 61;
     this.btnLogout.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right);
     this.btnLogout.BackColor = Color.Transparent;
     this.btnLogout.FlatAppearance.BorderColor = Color.DimGray;
     this.btnLogout.FlatAppearance.BorderSize = 0;
     this.btnLogout.FlatAppearance.MouseDownBackColor = Color.FromArgb(255, 128, 0);
     this.btnLogout.FlatAppearance.MouseOverBackColor = Color.Gray;
     this.btnLogout.FlatStyle = FlatStyle.Flat;
     this.btnLogout.Font = new Font("Segoe UI", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
     this.btnLogout.ForeColor = Color.LightGray;
     this.btnLogout.Location = new Point(170, 2);
     this.btnLogout.Name = "btnLogout";
     this.btnLogout.Padding = new Padding(1, 0, 1, 0);
     this.btnLogout.Size = new Size(57, 26);
     this.btnLogout.TabIndex = 11;
     this.btnLogout.Tag = "0";
     this.btnLogout.Text = "Logout";
     this.btnLogout.TextAlign = ContentAlignment.TopCenter;
     this.btnLogout.UseVisualStyleBackColor = false;
     this.btnLogout.Click += new EventHandler(this.btnLogout_Click);
     this.panelFontAdjust.Anchor = (AnchorStyles.Top | AnchorStyles.Right);
     this.panelFontAdjust.BackColor = Color.SkyBlue;
     this.panelFontAdjust.Controls.Add(this.btnFontDone);
     this.panelFontAdjust.Controls.Add(this.cbFontSize);
     this.panelFontAdjust.Controls.Add(this.cbDefaultFontName);
     this.panelFontAdjust.Controls.Add(this.chbBold);
     this.panelFontAdjust.Location = new Point(437, 140);
     this.panelFontAdjust.Name = "panelFontAdjust";
     this.panelFontAdjust.Size = new Size(281, 35);
     this.panelFontAdjust.TabIndex = 71;
     this.panelFontAdjust.Visible = false;
     this.btnFontDone.FlatAppearance.BorderColor = Color.LightGray;
     this.btnFontDone.FlatAppearance.BorderSize = 0;
     this.btnFontDone.FlatAppearance.MouseDownBackColor = Color.FromArgb(255, 128, 0);
     this.btnFontDone.FlatAppearance.MouseOverBackColor = Color.FromArgb(0, 192, 192);
     this.btnFontDone.FlatStyle = FlatStyle.Flat;
     this.btnFontDone.ForeColor = Color.WhiteSmoke;
     this.btnFontDone.Image = Resources.fileclose;
     this.btnFontDone.Location = new Point(248, 3);
     this.btnFontDone.Name = "btnFontDone";
     this.btnFontDone.Size = new Size(29, 29);
     this.btnFontDone.TabIndex = 15;
     this.btnFontDone.UseVisualStyleBackColor = true;
     this.btnFontDone.Click += new EventHandler(this.btnFontDone_Click);
     this.cbFontSize.BackColor = Color.White;
     this.cbFontSize.DropDownStyle = ComboBoxStyle.DropDownList;
     this.cbFontSize.FlatStyle = FlatStyle.Flat;
     this.cbFontSize.ForeColor = Color.Black;
     this.cbFontSize.FormattingEnabled = true;
     this.cbFontSize.Items.AddRange(new object[]
     {
         "8",
         "9",
         "10",
         "11",
         "12",
         "14",
         "16",
         "18",
         "20"
     });
     this.cbFontSize.Location = new Point(144, 7);
     this.cbFontSize.Name = "cbFontSize";
     this.cbFontSize.Size = new Size(44, 21);
     this.cbFontSize.TabIndex = 14;
     this.cbFontSize.SelectedIndexChanged += new EventHandler(this.cbFontSize_SelectedIndexChanged);
     this.cbDefaultFontName.BackColor = Color.White;
     this.cbDefaultFontName.DropDownStyle = ComboBoxStyle.DropDownList;
     this.cbDefaultFontName.FlatStyle = FlatStyle.Flat;
     this.cbDefaultFontName.ForeColor = Color.Black;
     this.cbDefaultFontName.FormattingEnabled = true;
     this.cbDefaultFontName.Items.AddRange(new object[]
     {
         "Microsoft Sans Serif",
         "Tahoma",
         "Arial Narrow",
         "Segoe UI"
     });
     this.cbDefaultFontName.Location = new Point(5, 7);
     this.cbDefaultFontName.Name = "cbDefaultFontName";
     this.cbDefaultFontName.Size = new Size(135, 21);
     this.cbDefaultFontName.TabIndex = 12;
     this.cbDefaultFontName.SelectedIndexChanged += new EventHandler(this.cbDefaultFontName_SelectedIndexChanged);
     this.chbBold.AutoSize = true;
     this.chbBold.BackColor = Color.Transparent;
     this.chbBold.ForeColor = Color.Black;
     this.chbBold.Location = new Point(192, 9);
     this.chbBold.Name = "chbBold";
     this.chbBold.Size = new Size(47, 17);
     this.chbBold.TabIndex = 7;
     this.chbBold.Text = "Bold";
     this.chbBold.UseVisualStyleBackColor = false;
     this.chbBold.Click += new EventHandler(this.tsbtnFontBold_Click);
     this.toolTip1.IsBalloon = true;
     this.toolTip1.ToolTipTitle = "Info guide";
     this.btnShowTickerSlide.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left);
     this.btnShowTickerSlide.BackColor = Color.FromArgb(20, 20, 20);
     this.btnShowTickerSlide.FlatAppearance.BorderColor = Color.DimGray;
     this.btnShowTickerSlide.FlatAppearance.BorderSize = 0;
     this.btnShowTickerSlide.FlatAppearance.MouseDownBackColor = Color.FromArgb(255, 128, 0);
     this.btnShowTickerSlide.FlatAppearance.MouseOverBackColor = Color.FromArgb(0, 192, 192);
     this.btnShowTickerSlide.FlatStyle = FlatStyle.Flat;
     this.btnShowTickerSlide.Font = new Font("Segoe UI", 9f, FontStyle.Bold, GraphicsUnit.Point, 0);
     this.btnShowTickerSlide.ForeColor = Color.Cyan;
     this.btnShowTickerSlide.Location = new Point(3, 3);
     this.btnShowTickerSlide.Name = "btnShowTickerSlide";
     this.btnShowTickerSlide.Size = new Size(25, 26);
     this.btnShowTickerSlide.TabIndex = 0;
     this.btnShowTickerSlide.TabStop = false;
     this.btnShowTickerSlide.Tag = "1";
     this.btnShowTickerSlide.Text = "T";
     this.toolTip1.SetToolTip(this.btnShowTickerSlide, "Ticker Panel");
     this.btnShowTickerSlide.UseVisualStyleBackColor = false;
     this.btnShowTickerSlide.Click += new EventHandler(this.btnShowSlide_Click);
     this.btnShowSpeedOrderSlide.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left);
     this.btnShowSpeedOrderSlide.BackColor = Color.FromArgb(20, 20, 20);
     this.btnShowSpeedOrderSlide.FlatAppearance.BorderColor = Color.DimGray;
     this.btnShowSpeedOrderSlide.FlatAppearance.BorderSize = 0;
     this.btnShowSpeedOrderSlide.FlatAppearance.MouseDownBackColor = Color.FromArgb(255, 128, 0);
     this.btnShowSpeedOrderSlide.FlatAppearance.MouseOverBackColor = Color.FromArgb(0, 192, 192);
     this.btnShowSpeedOrderSlide.FlatStyle = FlatStyle.Flat;
     this.btnShowSpeedOrderSlide.Font = new Font("Segoe UI", 9f, FontStyle.Bold, GraphicsUnit.Point, 0);
     this.btnShowSpeedOrderSlide.ForeColor = Color.LightGray;
     this.btnShowSpeedOrderSlide.Location = new Point(31, 3);
     this.btnShowSpeedOrderSlide.Name = "btnShowSpeedOrderSlide";
     this.btnShowSpeedOrderSlide.Size = new Size(25, 26);
     this.btnShowSpeedOrderSlide.TabIndex = 12;
     this.btnShowSpeedOrderSlide.TabStop = false;
     this.btnShowSpeedOrderSlide.Tag = "2";
     this.btnShowSpeedOrderSlide.Text = "S";
     this.toolTip1.SetToolTip(this.btnShowSpeedOrderSlide, "Smart One Click Panel");
     this.btnShowSpeedOrderSlide.UseVisualStyleBackColor = false;
     this.btnShowSpeedOrderSlide.Click += new EventHandler(this.btnShowSlide_Click);
     this.btnNews.AutoSize = true;
     this.btnNews.AutoSizeMode = AutoSizeMode.GrowAndShrink;
     this.btnNews.BackColor = Color.Transparent;
     this.btnNews.FlatAppearance.BorderSize = 0;
     this.btnNews.FlatAppearance.MouseDownBackColor = Color.FromArgb(255, 128, 0);
     this.btnNews.FlatAppearance.MouseOverBackColor = Color.Gray;
     this.btnNews.FlatStyle = FlatStyle.Flat;
     this.btnNews.Font = new Font("Segoe UI", 9f, FontStyle.Regular, GraphicsUnit.Point, 0);
     this.btnNews.ForeColor = Color.LightGray;
     this.btnNews.Location = new Point(367, 1);
     this.btnNews.Name = "btnNews";
     this.btnNews.Padding = new Padding(1, 0, 1, 0);
     this.btnNews.Size = new Size(48, 25);
     this.btnNews.TabIndex = 13;
     this.btnNews.Tag = "0";
     this.btnNews.Text = "News";
     this.btnNews.TextAlign = ContentAlignment.TopCenter;
     this.toolTip1.SetToolTip(this.btnNews, "ข่าว / ข้อมูลหลักทรัพย์");
     this.btnNews.UseVisualStyleBackColor = false;
     this.btnNews.Click += new EventHandler(this.Menus_Click);
     this.btnFacebook.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right);
     this.btnFacebook.BackColor = Color.Transparent;
     this.btnFacebook.FlatAppearance.BorderColor = Color.DimGray;
     this.btnFacebook.FlatAppearance.BorderSize = 0;
     this.btnFacebook.FlatAppearance.MouseDownBackColor = Color.FromArgb(255, 128, 0);
     this.btnFacebook.FlatAppearance.MouseOverBackColor = Color.FromArgb(0, 192, 192);
     this.btnFacebook.FlatStyle = FlatStyle.Flat;
     this.btnFacebook.Font = new Font("Segoe UI", 9f, FontStyle.Bold, GraphicsUnit.Point, 0);
     this.btnFacebook.ForeColor = Color.LightGray;
     this.btnFacebook.Image = (Image)componentResourceManager.GetObject("btnFacebook.Image");
     this.btnFacebook.Location = new Point(89, 2);
     this.btnFacebook.Name = "btnFacebook";
     this.btnFacebook.Size = new Size(25, 26);
     this.btnFacebook.TabIndex = 75;
     this.btnFacebook.TabStop = false;
     this.btnFacebook.Tag = "2";
     this.toolTip1.SetToolTip(this.btnFacebook, "Goto i2Trade facebook");
     this.btnFacebook.UseVisualStyleBackColor = false;
     this.btnFacebook.Click += new EventHandler(this.btnFacebook_Click);
     this.btnOptions2.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right);
     this.btnOptions2.BackColor = Color.Transparent;
     this.btnOptions2.FlatAppearance.BorderColor = Color.DimGray;
     this.btnOptions2.FlatAppearance.BorderSize = 0;
     this.btnOptions2.FlatAppearance.MouseDownBackColor = Color.FromArgb(255, 128, 0);
     this.btnOptions2.FlatAppearance.MouseOverBackColor = Color.FromArgb(0, 192, 192);
     this.btnOptions2.FlatStyle = FlatStyle.Flat;
     this.btnOptions2.ForeColor = Color.LightGray;
     this.btnOptions2.Image = (Image)componentResourceManager.GetObject("btnOptions2.Image");
     this.btnOptions2.Location = new Point(137, 2);
     this.btnOptions2.Name = "btnOptions2";
     this.btnOptions2.Size = new Size(25, 26);
     this.btnOptions2.TabIndex = 2;
     this.btnOptions2.TabStop = false;
     this.toolTip1.SetToolTip(this.btnOptions2, "Options");
     this.btnOptions2.UseVisualStyleBackColor = false;
     this.btnOptions2.Click += new EventHandler(this.btnOptions_Click);
     this.btnAdjFont2.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right);
     this.btnAdjFont2.BackColor = Color.Transparent;
     this.btnAdjFont2.FlatAppearance.BorderColor = Color.DimGray;
     this.btnAdjFont2.FlatAppearance.BorderSize = 0;
     this.btnAdjFont2.FlatAppearance.MouseDownBackColor = Color.FromArgb(255, 128, 0);
     this.btnAdjFont2.FlatAppearance.MouseOverBackColor = Color.FromArgb(0, 192, 192);
     this.btnAdjFont2.FlatStyle = FlatStyle.Flat;
     this.btnAdjFont2.ForeColor = Color.LightGray;
     this.btnAdjFont2.Image = (Image)componentResourceManager.GetObject("btnAdjFont2.Image");
     this.btnAdjFont2.Location = new Point(113, 2);
     this.btnAdjFont2.Name = "btnAdjFont2";
     this.btnAdjFont2.Size = new Size(25, 26);
     this.btnAdjFont2.TabIndex = 4;
     this.btnAdjFont2.TabStop = false;
     this.toolTip1.SetToolTip(this.btnAdjFont2, "Adjust Font");
     this.btnAdjFont2.UseVisualStyleBackColor = false;
     this.btnAdjFont2.Click += new EventHandler(this.btnAdjFont_Click);
     this.panelControlDockR.BackColor = Color.FromArgb(30, 30, 30);
     this.panelControlDockR.Controls.Add(this.btnFacebook);
     this.panelControlDockR.Controls.Add(this.btnLogout);
     this.panelControlDockR.Controls.Add(this.btnOptions2);
     this.panelControlDockR.Controls.Add(this.btnAdjFont2);
     this.panelControlDockR.Controls.Add(this.btnShowSpeedOrderSlide);
     this.panelControlDockR.Controls.Add(this.btnShowTickerSlide);
     this.panelControlDockR.Dock = DockStyle.Right;
     this.panelControlDockR.Location = new Point(905, 0);
     this.panelControlDockR.Name = "panelControlDockR";
     this.panelControlDockR.Padding = new Padding(0, 0, 0, 1);
     this.panelControlDockR.Size = new Size(230, 30);
     this.panelControlDockR.TabIndex = 72;
     this.panelDockR.BackColor = Color.FromArgb(20, 20, 20);
     this.panelDockR.Controls.Add(this.Smart1ClickBox);
     this.panelDockR.Controls.Add(this.TickerSlideBox);
     this.panelDockR.Location = new Point(891, 178);
     this.panelDockR.Name = "panelDockR";
     this.panelDockR.Size = new Size(255, 162);
     this.panelDockR.TabIndex = 73;
     this.panelDockR.Visible = false;
     this.Smart1ClickBox.BackColor = Color.FromArgb(20, 20, 20);
     this.Smart1ClickBox.IsLoadingData = true;
     this.Smart1ClickBox.Location = new Point(10, 98);
     this.Smart1ClickBox.Margin = new Padding(4);
     this.Smart1ClickBox.Name = "Smart1ClickBox";
     this.Smart1ClickBox.Size = new Size(242, 26);
     this.Smart1ClickBox.TabIndex = 2;
     this.Smart1ClickBox.Visible = false;
     this.TickerSlideBox.BackColor = Color.FromArgb(20, 20, 20);
     this.TickerSlideBox.Location = new Point(14, 3);
     this.TickerSlideBox.Margin = new Padding(4);
     this.TickerSlideBox.Name = "TickerSlideBox";
     this.TickerSlideBox.Size = new Size(268, 54);
     this.TickerSlideBox.TabIndex = 0;
     this.TickerSlideBox.Visible = false;
     this.panelMenu.BackColor = Color.FromArgb(30, 30, 30);
     this.panelMenu.Controls.Add(this.panelControlDockR);
     this.panelMenu.Controls.Add(this.btnAutoTrade);
     this.panelMenu.Controls.Add(this.btnEservice);
     this.panelMenu.Controls.Add(this.btnRanking);
     this.panelMenu.Controls.Add(this.btnBatchOrder);
     this.panelMenu.Controls.Add(this.btnEfinTools);
     this.panelMenu.Controls.Add(this.btnNews);
     this.panelMenu.Controls.Add(this.btnMarketInfo);
     this.panelMenu.Controls.Add(this.btnPortfolio);
     this.panelMenu.Controls.Add(this.btnViewOrder);
     this.panelMenu.Controls.Add(this.btnSummary);
     this.panelMenu.Controls.Add(this.btnTopBBOs);
     this.panelMenu.Controls.Add(this.btnMarketWatch);
     this.panelMenu.Location = new Point(3, 55);
     this.panelMenu.MinimumSize = new Size(0, 30);
     this.panelMenu.Name = "panelMenu";
     this.panelMenu.Size = new Size(1135, 30);
     this.panelMenu.TabIndex = 74;
     this.panelMenu.Visible = false;
     this.btnAutoTrade.AutoSize = true;
     this.btnAutoTrade.AutoSizeMode = AutoSizeMode.GrowAndShrink;
     this.btnAutoTrade.BackColor = Color.Transparent;
     this.btnAutoTrade.FlatAppearance.BorderSize = 0;
     this.btnAutoTrade.FlatAppearance.MouseDownBackColor = Color.FromArgb(255, 128, 0);
     this.btnAutoTrade.FlatAppearance.MouseOverBackColor = Color.Gray;
     this.btnAutoTrade.FlatStyle = FlatStyle.Flat;
     this.btnAutoTrade.Font = new Font("Segoe UI", 9f, FontStyle.Regular, GraphicsUnit.Point, 0);
     this.btnAutoTrade.ForeColor = Color.LightGray;
     this.btnAutoTrade.Location = new Point(655, 1);
     this.btnAutoTrade.Name = "btnAutoTrade";
     this.btnAutoTrade.Padding = new Padding(1, 0, 1, 0);
     this.btnAutoTrade.Size = new Size(78, 25);
     this.btnAutoTrade.TabIndex = 18;
     this.btnAutoTrade.Tag = "0";
     this.btnAutoTrade.Text = "Auto Trade";
     this.btnAutoTrade.TextAlign = ContentAlignment.TopCenter;
     this.btnAutoTrade.UseVisualStyleBackColor = false;
     this.btnAutoTrade.Visible = false;
     this.btnAutoTrade.Click += new EventHandler(this.Menus_Click);
     this.btnEservice.AutoSize = true;
     this.btnEservice.AutoSizeMode = AutoSizeMode.GrowAndShrink;
     this.btnEservice.BackColor = Color.Transparent;
     this.btnEservice.FlatAppearance.BorderSize = 0;
     this.btnEservice.FlatAppearance.MouseDownBackColor = Color.FromArgb(255, 128, 0);
     this.btnEservice.FlatAppearance.MouseOverBackColor = Color.Gray;
     this.btnEservice.FlatStyle = FlatStyle.Flat;
     this.btnEservice.Font = new Font("Segoe UI", 9f, FontStyle.Regular, GraphicsUnit.Point, 0);
     this.btnEservice.ForeColor = Color.LightGray;
     this.btnEservice.Location = new Point(819, 1);
     this.btnEservice.Name = "btnEservice";
     this.btnEservice.Padding = new Padding(1, 0, 1, 0);
     this.btnEservice.Size = new Size(67, 25);
     this.btnEservice.TabIndex = 17;
     this.btnEservice.Tag = "0";
     this.btnEservice.Text = "e-Service";
     this.btnEservice.TextAlign = ContentAlignment.TopCenter;
     this.btnEservice.UseVisualStyleBackColor = false;
     this.btnEservice.Visible = false;
     this.btnEservice.Click += new EventHandler(this.Menus_Click);
     this.btnRanking.AutoSize = true;
     this.btnRanking.AutoSizeMode = AutoSizeMode.GrowAndShrink;
     this.btnRanking.BackColor = Color.Transparent;
     this.btnRanking.FlatAppearance.BorderSize = 0;
     this.btnRanking.FlatAppearance.MouseDownBackColor = Color.FromArgb(255, 128, 0);
     this.btnRanking.FlatAppearance.MouseOverBackColor = Color.Gray;
     this.btnRanking.FlatStyle = FlatStyle.Flat;
     this.btnRanking.Font = new Font("Segoe UI", 9f, FontStyle.Regular, GraphicsUnit.Point, 0);
     this.btnRanking.ForeColor = Color.LightGray;
     this.btnRanking.Location = new Point(237, 1);
     this.btnRanking.Name = "btnRanking";
     this.btnRanking.Padding = new Padding(1, 0, 1, 0);
     this.btnRanking.Size = new Size(62, 25);
     this.btnRanking.TabIndex = 16;
     this.btnRanking.Tag = "0";
     this.btnRanking.Text = "Ranking";
     this.btnRanking.TextAlign = ContentAlignment.TopCenter;
     this.btnRanking.UseVisualStyleBackColor = false;
     this.btnRanking.Click += new EventHandler(this.Menus_Click);
     this.btnBatchOrder.AutoSize = true;
     this.btnBatchOrder.AutoSizeMode = AutoSizeMode.GrowAndShrink;
     this.btnBatchOrder.BackColor = Color.Transparent;
     this.btnBatchOrder.FlatAppearance.BorderSize = 0;
     this.btnBatchOrder.FlatAppearance.MouseDownBackColor = Color.FromArgb(255, 128, 0);
     this.btnBatchOrder.FlatAppearance.MouseOverBackColor = Color.Gray;
     this.btnBatchOrder.FlatStyle = FlatStyle.Flat;
     this.btnBatchOrder.Font = new Font("Segoe UI", 9f, FontStyle.Regular, GraphicsUnit.Point, 0);
     this.btnBatchOrder.ForeColor = Color.LightGray;
     this.btnBatchOrder.Location = new Point(741, 1);
     this.btnBatchOrder.Name = "btnBatchOrder";
     this.btnBatchOrder.Padding = new Padding(1, 0, 1, 0);
     this.btnBatchOrder.Size = new Size(82, 25);
     this.btnBatchOrder.TabIndex = 15;
     this.btnBatchOrder.Tag = "0";
     this.btnBatchOrder.Text = "Batch Order";
     this.btnBatchOrder.TextAlign = ContentAlignment.TopCenter;
     this.btnBatchOrder.UseVisualStyleBackColor = false;
     this.btnBatchOrder.Visible = false;
     this.btnBatchOrder.Click += new EventHandler(this.Menus_Click);
     this.btnEfinTools.AutoSize = true;
     this.btnEfinTools.AutoSizeMode = AutoSizeMode.GrowAndShrink;
     this.btnEfinTools.BackColor = Color.Transparent;
     this.btnEfinTools.FlatAppearance.BorderSize = 0;
     this.btnEfinTools.FlatAppearance.MouseDownBackColor = Color.FromArgb(255, 128, 0);
     this.btnEfinTools.FlatAppearance.MouseOverBackColor = Color.Gray;
     this.btnEfinTools.FlatStyle = FlatStyle.Flat;
     this.btnEfinTools.Font = new Font("Segoe UI", 9f, FontStyle.Regular, GraphicsUnit.Point, 0);
     this.btnEfinTools.ForeColor = Color.LightGray;
     this.btnEfinTools.Location = new Point(573, 1);
     this.btnEfinTools.Name = "btnEfinTools";
     this.btnEfinTools.Padding = new Padding(1, 0, 1, 0);
     this.btnEfinTools.Size = new Size(73, 25);
     this.btnEfinTools.TabIndex = 14;
     this.btnEfinTools.Tag = "0";
     this.btnEfinTools.Text = "eFin Tools";
     this.btnEfinTools.TextAlign = ContentAlignment.TopCenter;
     this.btnEfinTools.UseVisualStyleBackColor = false;
     this.btnEfinTools.Click += new EventHandler(this.Menus_Click);
     this.btnMarketInfo.AutoSize = true;
     this.btnMarketInfo.AutoSizeMode = AutoSizeMode.GrowAndShrink;
     this.btnMarketInfo.BackColor = Color.Transparent;
     this.btnMarketInfo.FlatAppearance.BorderSize = 0;
     this.btnMarketInfo.FlatAppearance.MouseDownBackColor = Color.FromArgb(255, 128, 0);
     this.btnMarketInfo.FlatAppearance.MouseOverBackColor = Color.Gray;
     this.btnMarketInfo.FlatStyle = FlatStyle.Flat;
     this.btnMarketInfo.Font = new Font("Segoe UI", 9f, FontStyle.Regular, GraphicsUnit.Point, 0);
     this.btnMarketInfo.ForeColor = Color.LightGray;
     this.btnMarketInfo.Location = new Point(304, 1);
     this.btnMarketInfo.Name = "btnMarketInfo";
     this.btnMarketInfo.Padding = new Padding(1, 0, 1, 0);
     this.btnMarketInfo.Size = new Size(56, 25);
     this.btnMarketInfo.TabIndex = 12;
     this.btnMarketInfo.Tag = "0";
     this.btnMarketInfo.Text = "Market";
     this.btnMarketInfo.TextAlign = ContentAlignment.TopCenter;
     this.btnMarketInfo.UseVisualStyleBackColor = false;
     this.btnMarketInfo.Click += new EventHandler(this.Menus_Click);
     this.btnPortfolio.AutoSize = true;
     this.btnPortfolio.AutoSizeMode = AutoSizeMode.GrowAndShrink;
     this.btnPortfolio.BackColor = Color.Transparent;
     this.btnPortfolio.FlatAppearance.BorderSize = 0;
     this.btnPortfolio.FlatAppearance.MouseDownBackColor = Color.FromArgb(255, 128, 0);
     this.btnPortfolio.FlatAppearance.MouseOverBackColor = Color.Gray;
     this.btnPortfolio.FlatStyle = FlatStyle.Flat;
     this.btnPortfolio.Font = new Font("Segoe UI", 9f, FontStyle.Regular, GraphicsUnit.Point, 0);
     this.btnPortfolio.ForeColor = Color.LightGray;
     this.btnPortfolio.Location = new Point(500, 1);
     this.btnPortfolio.Name = "btnPortfolio";
     this.btnPortfolio.Padding = new Padding(1, 0, 1, 0);
     this.btnPortfolio.Size = new Size(65, 25);
     this.btnPortfolio.TabIndex = 5;
     this.btnPortfolio.Tag = "0";
     this.btnPortfolio.Text = "Portfolio";
     this.btnPortfolio.TextAlign = ContentAlignment.TopCenter;
     this.btnPortfolio.UseVisualStyleBackColor = false;
     this.btnPortfolio.Click += new EventHandler(this.Menus_Click);
     this.btnViewOrder.AutoSize = true;
     this.btnViewOrder.AutoSizeMode = AutoSizeMode.GrowAndShrink;
     this.btnViewOrder.BackColor = Color.Transparent;
     this.btnViewOrder.FlatAppearance.BorderSize = 0;
     this.btnViewOrder.FlatAppearance.MouseDownBackColor = Color.FromArgb(255, 128, 0);
     this.btnViewOrder.FlatAppearance.MouseOverBackColor = Color.Gray;
     this.btnViewOrder.FlatStyle = FlatStyle.Flat;
     this.btnViewOrder.Font = new Font("Segoe UI", 9f, FontStyle.Regular, GraphicsUnit.Point, 0);
     this.btnViewOrder.ForeColor = Color.LightGray;
     this.btnViewOrder.Location = new Point(416, 1);
     this.btnViewOrder.Name = "btnViewOrder";
     this.btnViewOrder.Padding = new Padding(1, 0, 1, 0);
     this.btnViewOrder.Size = new Size(77, 25);
     this.btnViewOrder.TabIndex = 4;
     this.btnViewOrder.Tag = "0";
     this.btnViewOrder.Text = "View Order";
     this.btnViewOrder.TextAlign = ContentAlignment.TopCenter;
     this.btnViewOrder.UseVisualStyleBackColor = false;
     this.btnViewOrder.Click += new EventHandler(this.Menus_Click);
     this.btnSummary.AutoSize = true;
     this.btnSummary.AutoSizeMode = AutoSizeMode.GrowAndShrink;
     this.btnSummary.BackColor = Color.Transparent;
     this.btnSummary.FlatAppearance.BorderSize = 0;
     this.btnSummary.FlatAppearance.MouseDownBackColor = Color.FromArgb(255, 128, 0);
     this.btnSummary.FlatAppearance.MouseOverBackColor = Color.Gray;
     this.btnSummary.FlatStyle = FlatStyle.Flat;
     this.btnSummary.Font = new Font("Segoe UI", 9f, FontStyle.Regular, GraphicsUnit.Point, 0);
     this.btnSummary.ForeColor = Color.LightGray;
     this.btnSummary.Location = new Point(163, 1);
     this.btnSummary.Name = "btnSummary";
     this.btnSummary.Size = new Size(68, 25);
     this.btnSummary.TabIndex = 2;
     this.btnSummary.Tag = "0";
     this.btnSummary.Text = "Summary";
     this.btnSummary.TextAlign = ContentAlignment.TopCenter;
     this.btnSummary.UseVisualStyleBackColor = false;
     this.btnSummary.Click += new EventHandler(this.Menus_Click);
     this.btnTopBBOs.AutoSize = true;
     this.btnTopBBOs.AutoSizeMode = AutoSizeMode.GrowAndShrink;
     this.btnTopBBOs.BackColor = Color.Transparent;
     this.btnTopBBOs.FlatAppearance.BorderSize = 0;
     this.btnTopBBOs.FlatAppearance.MouseDownBackColor = Color.FromArgb(255, 128, 0);
     this.btnTopBBOs.FlatAppearance.MouseOverBackColor = Color.Gray;
     this.btnTopBBOs.FlatStyle = FlatStyle.Flat;
     this.btnTopBBOs.Font = new Font("Segoe UI", 9f, FontStyle.Regular, GraphicsUnit.Point, 0);
     this.btnTopBBOs.ForeColor = Color.LightGray;
     this.btnTopBBOs.Location = new Point(91, 1);
     this.btnTopBBOs.Name = "btnTopBBOs";
     this.btnTopBBOs.Padding = new Padding(1, 0, 1, 0);
     this.btnTopBBOs.Size = new Size(71, 25);
     this.btnTopBBOs.TabIndex = 1;
     this.btnTopBBOs.Tag = "0";
     this.btnTopBBOs.Text = "Top BBOs";
     this.btnTopBBOs.TextAlign = ContentAlignment.TopCenter;
     this.btnTopBBOs.UseVisualStyleBackColor = false;
     this.btnTopBBOs.Click += new EventHandler(this.Menus_Click);
     this.btnMarketWatch.AutoSize = true;
     this.btnMarketWatch.AutoSizeMode = AutoSizeMode.GrowAndShrink;
     this.btnMarketWatch.BackColor = Color.FromArgb(30, 30, 30);
     this.btnMarketWatch.FlatAppearance.BorderSize = 0;
     this.btnMarketWatch.FlatAppearance.MouseDownBackColor = Color.FromArgb(255, 128, 0);
     this.btnMarketWatch.FlatAppearance.MouseOverBackColor = Color.Gray;
     this.btnMarketWatch.FlatStyle = FlatStyle.Flat;
     this.btnMarketWatch.Font = new Font("Segoe UI", 9f, FontStyle.Regular, GraphicsUnit.Point, 0);
     this.btnMarketWatch.ForeColor = Color.LightGray;
     this.btnMarketWatch.Location = new Point(3, 1);
     this.btnMarketWatch.Name = "btnMarketWatch";
     this.btnMarketWatch.Padding = new Padding(1, 0, 1, 0);
     this.btnMarketWatch.Size = new Size(93, 25);
     this.btnMarketWatch.TabIndex = 0;
     this.btnMarketWatch.Tag = "1";
     this.btnMarketWatch.Text = "Market Watch";
     this.btnMarketWatch.TextAlign = ContentAlignment.TopCenter;
     this.btnMarketWatch.UseVisualStyleBackColor = false;
     this.btnMarketWatch.Click += new EventHandler(this.Menus_Click);
     this.btnMarketWatch.FontChanged += new EventHandler(this.btnMarketWatch_FontChanged);
     this.timerMonitorFeed.Interval = 6000;
     this.timerMonitorFeed.Tick += new EventHandler(this.timerMonitorFeed_Tick);
     this.timer1.Interval = 1000;
     this.timer1.Tick += new EventHandler(this.timer1_Tick);
     base.AutoScaleDimensions = new SizeF(6f, 13f);
     base.AutoScaleMode = AutoScaleMode.Font;
     this.BackColor = Color.FromArgb(20, 20, 20);
     base.ClientSize = new Size(1150, 564);
     base.Controls.Add(this.panelMenu);
     base.Controls.Add(this.panelFontAdjust);
     base.Controls.Add(this.panelDockR);
     base.Controls.Add(this.panelSep);
     base.Controls.Add(this.panBottom);
     base.Controls.Add(this.panelTop);
     this.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
     base.Icon = (Icon)componentResourceManager.GetObject("$this.Icon");
     base.KeyPreview = true;
     base.Name = "frmMain";
     base.StartPosition = FormStartPosition.CenterScreen;
     this.Text = "Trading Workstation";
     base.Load += new EventHandler(this.frmMain_Load);
     base.SizeChanged += new EventHandler(this.frmMain_SizeChanged);
     base.KeyUp += new KeyEventHandler(this.frmMain_KeyUp);
     base.FormClosing += new FormClosingEventHandler(this.frmMain_FormClosing);
     base.KeyDown += new KeyEventHandler(this.frmMain_KeyDown);
     this.panBottom.ResumeLayout(false);
     this.panelTop.ResumeLayout(false);
     ((ISupportInitialize)this.pici2Logo).EndInit();
     this.panelFontAdjust.ResumeLayout(false);
     this.panelFontAdjust.PerformLayout();
     this.panelControlDockR.ResumeLayout(false);
     this.panelDockR.ResumeLayout(false);
     this.panelMenu.ResumeLayout(false);
     this.panelMenu.PerformLayout();
     base.ResumeLayout(false);
 }