private void InitializeComponent() { this.components = (IContainer) new Container(); ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof (InstrumentData)); this.splitContainer1 = new SplitContainer(); this.ltvDataSeries = new ListViewNB(); this.columnHeader1 = new ColumnHeader(); this.columnHeader2 = new ColumnHeader(); this.columnHeader3 = new ColumnHeader(); this.columnHeader4 = new ColumnHeader(); this.ctxDataSeries = new ContextMenuStrip(this.components); this.ctxDataSeries_New = new ToolStripMenuItem(); this.ctxDataSeries_New_Bar = new ToolStripMenuItem(); this.toolStripMenuItem1 = new ToolStripMenuItem(); this.ctxDataSeries_New_Trade = new ToolStripMenuItem(); this.ctxDataSeries_New_Quote = new ToolStripMenuItem(); this.toolStripSeparator3 = new ToolStripSeparator(); this.ctxDataSeries_Refresh = new ToolStripMenuItem(); this.toolStripSeparator2 = new ToolStripSeparator(); this.ctxDataSeries_Dump = new ToolStripMenuItem(); this.ctxDataSeries_ExportCSV = new ToolStripMenuItem(); this.toolStripSeparator4 = new ToolStripSeparator(); this.ctxDataSeries_CompressBars = new ToolStripMenuItem(); this.toolStripSeparator5 = new ToolStripSeparator(); this.ctxDataSeries_Clear = new ToolStripMenuItem(); this.toolStripSeparator1 = new ToolStripSeparator(); this.ctxDataSeries_Delete = new ToolStripMenuItem(); this.images = new ImageList(this.components); this.tabControl2 = new TabControl(); this.tabData = new TabPage(); this.dataSeriesViewer = new DataSeriesViewer(); this.toolStrip1 = new ToolStrip(); this.tsbRefresh = new ToolStripButton(); this.splitContainer1.BeginInit(); this.splitContainer1.Panel1.SuspendLayout(); this.splitContainer1.Panel2.SuspendLayout(); this.splitContainer1.SuspendLayout(); this.ctxDataSeries.SuspendLayout(); this.tabControl2.SuspendLayout(); this.tabData.SuspendLayout(); this.toolStrip1.SuspendLayout(); this.SuspendLayout(); this.splitContainer1.Dock = DockStyle.Fill; this.splitContainer1.Location = new Point(0, 25); this.splitContainer1.Name = "splitContainer1"; this.splitContainer1.Orientation = Orientation.Horizontal; this.splitContainer1.Panel1.Controls.Add((Control) this.ltvDataSeries); this.splitContainer1.Panel1.Padding = new Padding(4); this.splitContainer1.Panel2.Controls.Add((Control) this.tabControl2); this.splitContainer1.Panel2.Padding = new Padding(4); this.splitContainer1.Size = new Size(584, 442); this.splitContainer1.SplitterDistance = 114; this.splitContainer1.TabIndex = 0; this.ltvDataSeries.Columns.AddRange(new ColumnHeader[4] { this.columnHeader1, this.columnHeader2, this.columnHeader3, this.columnHeader4 }); this.ltvDataSeries.ContextMenuStrip = this.ctxDataSeries; this.ltvDataSeries.Dock = DockStyle.Fill; this.ltvDataSeries.FullRowSelect = true; this.ltvDataSeries.GridLines = true; this.ltvDataSeries.HideSelection = false; this.ltvDataSeries.Location = new Point(4, 4); this.ltvDataSeries.Name = "ltvDataSeries"; this.ltvDataSeries.ShowGroups = false; this.ltvDataSeries.Size = new Size(576, 106); this.ltvDataSeries.SmallImageList = this.images; this.ltvDataSeries.Sorting = SortOrder.Ascending; this.ltvDataSeries.TabIndex = 1; this.ltvDataSeries.UseCompatibleStateImageBehavior = false; this.ltvDataSeries.View = View.Details; this.ltvDataSeries.SelectedIndexChanged += new EventHandler(this.ltvDataSeries_SelectedIndexChanged); this.columnHeader1.Text = "Data Series"; this.columnHeader1.Width = 112; this.columnHeader2.Text = "Object Count"; this.columnHeader2.TextAlign = HorizontalAlignment.Right; this.columnHeader2.Width = 96; this.columnHeader3.Text = "First DateTime"; this.columnHeader3.TextAlign = HorizontalAlignment.Right; this.columnHeader3.Width = 144; this.columnHeader4.Text = "Last DateTime"; this.columnHeader4.TextAlign = HorizontalAlignment.Right; this.columnHeader4.Width = 144; this.ctxDataSeries.Items.AddRange(new ToolStripItem[12] { (ToolStripItem) this.ctxDataSeries_New, (ToolStripItem) this.toolStripSeparator3, (ToolStripItem) this.ctxDataSeries_Refresh, (ToolStripItem) this.toolStripSeparator2, (ToolStripItem) this.ctxDataSeries_Dump, (ToolStripItem) this.ctxDataSeries_ExportCSV, (ToolStripItem) this.toolStripSeparator4, (ToolStripItem) this.ctxDataSeries_CompressBars, (ToolStripItem) this.toolStripSeparator5, (ToolStripItem) this.ctxDataSeries_Clear, (ToolStripItem) this.toolStripSeparator1, (ToolStripItem) this.ctxDataSeries_Delete }); this.ctxDataSeries.Name = "ctxDataSeries"; this.ctxDataSeries.Size = new Size(162, 210); this.ctxDataSeries.Opening += new CancelEventHandler(this.ctxDataSeries_Opening); this.ctxDataSeries_New.DropDownItems.AddRange(new ToolStripItem[3] { (ToolStripItem) this.ctxDataSeries_New_Bar, (ToolStripItem) this.ctxDataSeries_New_Trade, (ToolStripItem) this.ctxDataSeries_New_Quote }); this.ctxDataSeries_New.Name = "ctxDataSeries_New"; this.ctxDataSeries_New.Size = new Size(161, 22); this.ctxDataSeries_New.Text = "New Data Series"; this.ctxDataSeries_New_Bar.DropDownItems.AddRange(new ToolStripItem[1] { (ToolStripItem) this.toolStripMenuItem1 }); this.ctxDataSeries_New_Bar.Name = "ctxDataSeries_New_Bar"; this.ctxDataSeries_New_Bar.Size = new Size(152, 22); this.ctxDataSeries_New_Bar.Text = "Bar"; this.ctxDataSeries_New_Bar.DropDownOpening += new EventHandler(this.ctxDataSeries_New_Bar_DropDownOpening); this.ctxDataSeries_New_Bar.DropDownItemClicked += new ToolStripItemClickedEventHandler(this.ctxDataSeries_New_Bar_DropDownItemClicked); this.toolStripMenuItem1.Name = "toolStripMenuItem1"; this.toolStripMenuItem1.Size = new Size(152, 22); this.toolStripMenuItem1.Text = "(Empty)"; this.ctxDataSeries_New_Trade.Name = "ctxDataSeries_New_Trade"; this.ctxDataSeries_New_Trade.Size = new Size(152, 22); this.ctxDataSeries_New_Trade.Text = "Trade"; this.ctxDataSeries_New_Trade.Click += new EventHandler(this.ctxDataSeries_New_Trade_Click); this.ctxDataSeries_New_Quote.Name = "ctxDataSeries_New_Quote"; this.ctxDataSeries_New_Quote.Size = new Size(152, 22); this.ctxDataSeries_New_Quote.Text = "Quote"; this.ctxDataSeries_New_Quote.Click += new EventHandler(this.ctxDataSeries_New_Quote_Click); this.toolStripSeparator3.Name = "toolStripSeparator3"; this.toolStripSeparator3.Size = new Size(158, 6); this.ctxDataSeries_Refresh.Name = "ctxDataSeries_Refresh"; this.ctxDataSeries_Refresh.Size = new Size(161, 22); this.ctxDataSeries_Refresh.Text = "Refresh"; this.ctxDataSeries_Refresh.Click += new EventHandler(this.ctxDataSeries_Refresh_Click); this.toolStripSeparator2.Name = "toolStripSeparator2"; this.toolStripSeparator2.Size = new Size(158, 6); this.ctxDataSeries_Dump.Name = "ctxDataSeries_Dump"; this.ctxDataSeries_Dump.Size = new Size(161, 22); this.ctxDataSeries_Dump.Text = "Dump"; this.ctxDataSeries_Dump.Click += new EventHandler(this.ctxDataSeries_Dump_Click); this.ctxDataSeries_ExportCSV.Name = "ctxDataSeries_ExportCSV"; this.ctxDataSeries_ExportCSV.Size = new Size(161, 22); this.ctxDataSeries_ExportCSV.Text = "Export To CSV..."; this.ctxDataSeries_ExportCSV.Click += new EventHandler(this.ctxDataSeries_ExportCSV_Click); this.toolStripSeparator4.Name = "toolStripSeparator4"; this.toolStripSeparator4.Size = new Size(158, 6); this.ctxDataSeries_CompressBars.Name = "ctxDataSeries_CompressBars"; this.ctxDataSeries_CompressBars.Size = new Size(161, 22); this.ctxDataSeries_CompressBars.Text = "Compress Bars..."; this.ctxDataSeries_CompressBars.Click += new EventHandler(this.ctxDataSeries_CompressBars_Click); this.toolStripSeparator5.Name = "toolStripSeparator5"; this.toolStripSeparator5.Size = new Size(158, 6); this.ctxDataSeries_Clear.Name = "ctxDataSeries_Clear"; this.ctxDataSeries_Clear.Size = new Size(161, 22); this.ctxDataSeries_Clear.Text = "Clear"; this.ctxDataSeries_Clear.Click += new EventHandler(this.ctxDataSeries_Clear_Click); this.toolStripSeparator1.Name = "toolStripSeparator1"; this.toolStripSeparator1.Size = new Size(158, 6); this.ctxDataSeries_Delete.Name = "ctxDataSeries_Delete"; this.ctxDataSeries_Delete.Size = new Size(161, 22); this.ctxDataSeries_Delete.Text = "Delete"; this.ctxDataSeries_Delete.Click += new EventHandler(this.ctxDataSeries_Delete_Click); this.images.ImageStream = (ImageListStreamer) componentResourceManager.GetObject("images.ImageStream"); this.images.TransparentColor = Color.Transparent; this.images.Images.SetKeyName(0, "data.png"); this.tabControl2.Controls.Add((Control) this.tabData); this.tabControl2.Dock = DockStyle.Fill; this.tabControl2.Location = new Point(4, 4); this.tabControl2.Name = "tabControl2"; this.tabControl2.SelectedIndex = 0; this.tabControl2.Size = new Size(576, 316); this.tabControl2.TabIndex = 0; this.tabData.Controls.Add((Control) this.dataSeriesViewer); this.tabData.Location = new Point(4, 22); this.tabData.Name = "tabData"; this.tabData.Padding = new Padding(3); this.tabData.Size = new Size(568, 290); this.tabData.TabIndex = 0; this.tabData.Text = "Data"; this.tabData.UseVisualStyleBackColor = true; this.dataSeriesViewer.Dock = DockStyle.Fill; this.dataSeriesViewer.Location = new Point(3, 3); this.dataSeriesViewer.Name = "dataSeriesViewer"; this.dataSeriesViewer.Size = new Size(562, 284); this.dataSeriesViewer.TabIndex = 0; this.toolStrip1.Items.AddRange(new ToolStripItem[1] { (ToolStripItem) this.tsbRefresh }); this.toolStrip1.Location = new Point(0, 0); this.toolStrip1.Name = "toolStrip1"; this.toolStrip1.Size = new Size(584, 25); this.toolStrip1.TabIndex = 1; this.toolStrip1.Text = "toolStrip1"; this.tsbRefresh.DisplayStyle = ToolStripItemDisplayStyle.Image; // this.tsbRefresh.Image = (Image) Resources.refresh; this.tsbRefresh.ImageTransparentColor = Color.Magenta; this.tsbRefresh.Name = "tsbRefresh"; this.tsbRefresh.Size = new Size(23, 22); this.tsbRefresh.Text = "Refresh"; this.tsbRefresh.Click += new EventHandler(this.tsbRefresh_Click); this.AutoScaleDimensions = new SizeF(6f, 13f); this.AutoScaleMode = AutoScaleMode.Font; this.Controls.Add((Control) this.splitContainer1); this.Controls.Add((Control) this.toolStrip1); this.Name = "InstrumentData"; this.Size = new Size(584, 467); this.splitContainer1.Panel1.ResumeLayout(false); this.splitContainer1.Panel2.ResumeLayout(false); this.splitContainer1.EndInit(); this.splitContainer1.ResumeLayout(false); this.ctxDataSeries.ResumeLayout(false); this.tabControl2.ResumeLayout(false); this.tabData.ResumeLayout(false); this.toolStrip1.ResumeLayout(false); this.toolStrip1.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); }
private void InitializeComponent() { this.cmbChooseStatistics = new ComboBox(); this.label1 = new Label(); this.ltvMatrix = new ListViewNB(); this.panel1 = new Panel(); this.panel1.SuspendLayout(); this.SuspendLayout(); this.cmbChooseStatistics.DropDownStyle = ComboBoxStyle.DropDownList; this.cmbChooseStatistics.FormattingEnabled = true; this.cmbChooseStatistics.Location = new Point(109, 13); this.cmbChooseStatistics.Name = "cmbChooseStatistics"; this.cmbChooseStatistics.Size = new Size(251, 21); this.cmbChooseStatistics.TabIndex = 0; this.cmbChooseStatistics.SelectedIndexChanged += new EventHandler(this.cmbChooseStatistics_SelectedIndexChanged); this.label1.AutoSize = true; this.label1.Location = new Point(14, 16); this.label1.Name = "label1"; this.label1.Size = new Size(89, 13); this.label1.TabIndex = 1; this.label1.Text = "Choose statistics:"; this.ltvMatrix.Dock = DockStyle.Fill; this.ltvMatrix.Location = new Point(0, 43); this.ltvMatrix.Name = "ltvMatrix"; this.ltvMatrix.Size = new Size(699, 446); this.ltvMatrix.TabIndex = 2; this.ltvMatrix.UseCompatibleStateImageBehavior = false; this.ltvMatrix.View = View.Details; this.panel1.Controls.Add((Control) this.cmbChooseStatistics); this.panel1.Controls.Add((Control) this.label1); this.panel1.Dock = DockStyle.Top; this.panel1.Location = new Point(0, 0); this.panel1.Name = "panel1"; this.panel1.Size = new Size(699, 43); this.panel1.TabIndex = 4; this.AutoScaleDimensions = new SizeF(6f, 13f); this.AutoScaleMode = AutoScaleMode.Font; this.Controls.Add((Control) this.ltvMatrix); this.Controls.Add((Control) this.panel1); this.Name = "CorrelationMatrix"; this.Size = new Size(699, 489); this.panel1.ResumeLayout(false); this.panel1.PerformLayout(); this.ResumeLayout(false); }
private void InitializeComponent() { this.ltvChldStatistics = new ListViewNB(); this.columnHeader1 = new ColumnHeader(); this.columnHeader2 = new ColumnHeader(); this.columnHeader3 = new ColumnHeader(); this.columnHeader4 = new ColumnHeader(); this.columnHeader5 = new ColumnHeader(); this.columnHeader6 = new ColumnHeader(); this.columnHeader7 = new ColumnHeader(); this.columnHeader8 = new ColumnHeader(); this.SuspendLayout(); this.ltvChldStatistics.Columns.AddRange(new ColumnHeader[8] { this.columnHeader1, this.columnHeader2, this.columnHeader3, this.columnHeader4, this.columnHeader5, this.columnHeader6, this.columnHeader7, this.columnHeader8 }); this.ltvChldStatistics.Dock = DockStyle.Fill; this.ltvChldStatistics.Location = new Point(0, 0); this.ltvChldStatistics.Name = "ltvChldStatistics"; this.ltvChldStatistics.Size = new Size(851, 386); this.ltvChldStatistics.TabIndex = 0; this.ltvChldStatistics.UseCompatibleStateImageBehavior = false; this.ltvChldStatistics.View = View.Details; this.columnHeader1.Text = "Portfolio"; this.columnHeader1.Width = 140; this.columnHeader2.Text = "Net Profit"; this.columnHeader2.TextAlign = HorizontalAlignment.Right; this.columnHeader2.Width = 80; this.columnHeader3.Text = "Gross Profit"; this.columnHeader3.TextAlign = HorizontalAlignment.Right; this.columnHeader3.Width = 80; this.columnHeader4.Text = "Gross Loss"; this.columnHeader4.TextAlign = HorizontalAlignment.Right; this.columnHeader4.Width = 80; this.columnHeader5.Text = "Avg Drawdown %"; this.columnHeader5.TextAlign = HorizontalAlignment.Right; this.columnHeader5.Width = 100; this.columnHeader6.Text = "Max Drawdown %"; this.columnHeader6.TextAlign = HorizontalAlignment.Right; this.columnHeader6.Width = 110; this.columnHeader7.Text = "Profit Factor"; this.columnHeader7.TextAlign = HorizontalAlignment.Right; this.columnHeader7.Width = 90; this.columnHeader8.Text = "Recovery Factor"; this.columnHeader8.TextAlign = HorizontalAlignment.Right; this.columnHeader8.Width = 100; this.AutoScaleDimensions = new SizeF(6f, 13f); this.AutoScaleMode = AutoScaleMode.Font; this.Controls.Add((Control) this.ltvChldStatistics); this.Name = "ChildrenStatistics"; this.Size = new Size(851, 386); this.ResumeLayout(false); }
private void InitializeComponent() { this.components = (IContainer) new Container(); ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof (DataManager)); this.tabControl1 = new TabControl(); this.tabPage1 = new TabPage(); this.trvDataTypes = new TreeView(); this.imgDataTypes = new ImageList(this.components); this.splitter1 = new Splitter(); this.tabControl2 = new TabControl(); this.tabDataSeries = new TabPage(); this.ltvDataSeries = new ListViewNB(); this.columnHeader1 = new ColumnHeader(); this.columnHeader2 = new ColumnHeader(); this.columnHeader3 = new ColumnHeader(); this.columnHeader4 = new ColumnHeader(); this.ctxDataSeries = new ContextMenuStrip(this.components); this.ctxDataSeries_Export = new ToolStripMenuItem(); this.toolStripSeparator3 = new ToolStripSeparator(); this.ctxDataSeries_CompressBars = new ToolStripMenuItem(); this.toolStripSeparator1 = new ToolStripSeparator(); this.ctxDataSeries_Clear = new ToolStripMenuItem(); this.toolStripSeparator2 = new ToolStripSeparator(); this.ctxDataSeries_Delete = new ToolStripMenuItem(); this.imgDataSeries = new ImageList(this.components); this.toolStrip = new ToolStrip(); this.tsbRefresh = new ToolStripButton(); this.tabControl1.SuspendLayout(); this.tabPage1.SuspendLayout(); this.tabControl2.SuspendLayout(); this.tabDataSeries.SuspendLayout(); this.ctxDataSeries.SuspendLayout(); this.toolStrip.SuspendLayout(); this.SuspendLayout(); this.tabControl1.Controls.Add((Control) this.tabPage1); this.tabControl1.Dock = DockStyle.Left; this.tabControl1.Location = new Point(0, 25); this.tabControl1.Name = "tabControl1"; this.tabControl1.SelectedIndex = 0; this.tabControl1.Size = new Size(140, 375); this.tabControl1.TabIndex = 0; this.tabPage1.Controls.Add((Control) this.trvDataTypes); this.tabPage1.Location = new Point(4, 22); this.tabPage1.Name = "tabPage1"; this.tabPage1.Padding = new Padding(3); this.tabPage1.Size = new Size(132, 349); this.tabPage1.TabIndex = 0; this.tabPage1.Text = "Data Type"; this.tabPage1.UseVisualStyleBackColor = true; this.trvDataTypes.Dock = DockStyle.Fill; this.trvDataTypes.HideSelection = false; this.trvDataTypes.ImageIndex = 0; this.trvDataTypes.ImageList = this.imgDataTypes; this.trvDataTypes.Location = new Point(3, 3); this.trvDataTypes.Name = "trvDataTypes"; this.trvDataTypes.SelectedImageIndex = 0; this.trvDataTypes.ShowLines = false; this.trvDataTypes.ShowRootLines = false; this.trvDataTypes.Size = new Size(126, 343); this.trvDataTypes.TabIndex = 0; this.trvDataTypes.AfterSelect += new TreeViewEventHandler(this.trvDataTypes_AfterSelect); this.trvDataTypes.MouseDown += new MouseEventHandler(this.trvDataTypes_MouseDown); this.imgDataTypes.ImageStream = (ImageListStreamer) componentResourceManager.GetObject("imgDataTypes.ImageStream"); this.imgDataTypes.TransparentColor = Color.Transparent; this.imgDataTypes.Images.SetKeyName(0, "data_type.png"); this.splitter1.Location = new Point(140, 25); this.splitter1.Name = "splitter1"; this.splitter1.Size = new Size(4, 375); this.splitter1.TabIndex = 1; this.splitter1.TabStop = false; this.tabControl2.Controls.Add((Control) this.tabDataSeries); this.tabControl2.Dock = DockStyle.Fill; this.tabControl2.Location = new Point(144, 25); this.tabControl2.Name = "tabControl2"; this.tabControl2.SelectedIndex = 0; this.tabControl2.Size = new Size(448, 375); this.tabControl2.TabIndex = 2; this.tabDataSeries.Controls.Add((Control) this.ltvDataSeries); this.tabDataSeries.Location = new Point(4, 22); this.tabDataSeries.Name = "tabDataSeries"; this.tabDataSeries.Padding = new Padding(3); this.tabDataSeries.Size = new Size(440, 349); this.tabDataSeries.TabIndex = 0; this.tabDataSeries.Text = "Data Series"; this.tabDataSeries.UseVisualStyleBackColor = true; this.ltvDataSeries.Columns.AddRange(new ColumnHeader[4] { this.columnHeader1, this.columnHeader2, this.columnHeader3, this.columnHeader4 }); this.ltvDataSeries.ContextMenuStrip = this.ctxDataSeries; this.ltvDataSeries.Dock = DockStyle.Fill; this.ltvDataSeries.FullRowSelect = true; this.ltvDataSeries.GridLines = true; this.ltvDataSeries.HideSelection = false; this.ltvDataSeries.Location = new Point(3, 3); this.ltvDataSeries.Name = "ltvDataSeries"; this.ltvDataSeries.ShowItemToolTips = true; this.ltvDataSeries.Size = new Size(434, 343); this.ltvDataSeries.SmallImageList = this.imgDataSeries; this.ltvDataSeries.TabIndex = 0; this.ltvDataSeries.UseCompatibleStateImageBehavior = false; this.ltvDataSeries.View = View.Details; this.ltvDataSeries.ColumnClick += new ColumnClickEventHandler(this.ltvDataSeries_ColumnClick); this.ltvDataSeries.ColumnWidthChanged += new ColumnWidthChangedEventHandler(this.ltvDataSeries_ColumnWidthChanged); this.columnHeader1.Text = "Instrument"; this.columnHeader1.Width = 79; this.columnHeader2.Text = "Count"; this.columnHeader2.TextAlign = HorizontalAlignment.Right; this.columnHeader2.Width = 86; this.columnHeader3.Text = "DateTime1"; this.columnHeader3.TextAlign = HorizontalAlignment.Right; this.columnHeader3.Width = 114; this.columnHeader4.Text = "DateTime2"; this.columnHeader4.TextAlign = HorizontalAlignment.Right; this.columnHeader4.Width = 118; this.ctxDataSeries.Items.AddRange(new ToolStripItem[7] { (ToolStripItem) this.ctxDataSeries_Export, (ToolStripItem) this.toolStripSeparator3, (ToolStripItem) this.ctxDataSeries_CompressBars, (ToolStripItem) this.toolStripSeparator1, (ToolStripItem) this.ctxDataSeries_Clear, (ToolStripItem) this.toolStripSeparator2, (ToolStripItem) this.ctxDataSeries_Delete }); this.ctxDataSeries.Name = "ctxDataSeries"; this.ctxDataSeries.Size = new Size(162, 110); this.ctxDataSeries.Opening += new CancelEventHandler(this.ctxDataSeries_Opening); this.ctxDataSeries_Export.Name = "ctxDataSeries_Export"; this.ctxDataSeries_Export.Size = new Size(161, 22); this.ctxDataSeries_Export.Text = "Export To CSV..."; this.ctxDataSeries_Export.Click += new EventHandler(this.ctxDataSeries_Export_Click); this.toolStripSeparator3.Name = "toolStripSeparator3"; this.toolStripSeparator3.Size = new Size(158, 6); this.ctxDataSeries_CompressBars.Name = "ctxDataSeries_CompressBars"; this.ctxDataSeries_CompressBars.Size = new Size(161, 22); this.ctxDataSeries_CompressBars.Text = "Compress Bars..."; this.ctxDataSeries_CompressBars.Click += new EventHandler(this.ctxDataSeries_CompressBars_Click); this.toolStripSeparator1.Name = "toolStripSeparator1"; this.toolStripSeparator1.Size = new Size(158, 6); this.ctxDataSeries_Clear.Name = "ctxDataSeries_Clear"; this.ctxDataSeries_Clear.Size = new Size(161, 22); this.ctxDataSeries_Clear.Text = "Clear"; this.ctxDataSeries_Clear.Click += new EventHandler(this.ctxDataSeries_Clear_Click); this.toolStripSeparator2.Name = "toolStripSeparator2"; this.toolStripSeparator2.Size = new Size(158, 6); this.ctxDataSeries_Delete.Name = "ctxDataSeries_Delete"; this.ctxDataSeries_Delete.Size = new Size(161, 22); this.ctxDataSeries_Delete.Text = "Delete"; this.ctxDataSeries_Delete.Click += new EventHandler(this.ctxDataSeries_Delete_Click); this.imgDataSeries.ImageStream = (ImageListStreamer) componentResourceManager.GetObject("imgDataSeries.ImageStream"); this.imgDataSeries.TransparentColor = Color.Transparent; this.imgDataSeries.Images.SetKeyName(0, "data.png"); this.toolStrip.Items.AddRange(new ToolStripItem[1] { (ToolStripItem) this.tsbRefresh }); this.toolStrip.Location = new Point(0, 0); this.toolStrip.Name = "toolStrip"; this.toolStrip.Size = new Size(592, 25); this.toolStrip.TabIndex = 3; this.toolStrip.Text = "toolStrip1"; this.tsbRefresh.DisplayStyle = ToolStripItemDisplayStyle.Image; // this.tsbRefresh.Image = (Image) Resources.refresh; this.tsbRefresh.ImageTransparentColor = Color.Magenta; this.tsbRefresh.Name = "tsbRefresh"; this.tsbRefresh.Size = new Size(23, 22); this.tsbRefresh.Text = "Refresh"; this.tsbRefresh.Click += new EventHandler(this.tsbRefresh_Click); this.AutoScaleDimensions = new SizeF(6f, 13f); this.AutoScaleMode = AutoScaleMode.Font; this.Controls.Add((Control) this.tabControl2); this.Controls.Add((Control) this.splitter1); this.Controls.Add((Control) this.tabControl1); this.Controls.Add((Control) this.toolStrip); this.Name = "DataManager"; this.Size = new Size(592, 400); this.tabControl1.ResumeLayout(false); this.tabPage1.ResumeLayout(false); this.tabControl2.ResumeLayout(false); this.tabDataSeries.ResumeLayout(false); this.ctxDataSeries.ResumeLayout(false); this.toolStrip.ResumeLayout(false); this.toolStrip.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); }
private void InitializeComponent() { this.groupBox2 = new GroupBox(); this.ltvTransactions = new ListViewNB(); this.columnHeader1 = new ColumnHeader(); this.columnHeader2 = new ColumnHeader(); this.columnHeader3 = new ColumnHeader(); this.columnHeader4 = new ColumnHeader(); this.columnHeader5 = new ColumnHeader(); this.columnHeader14 = new ColumnHeader(); this.groupBox3 = new GroupBox(); this.ltvPortfolio = new ListViewNB(); this.columnHeader10 = new ColumnHeader(); this.columnHeader11 = new ColumnHeader(); this.columnHeader12 = new ColumnHeader(); this.columnHeader13 = new ColumnHeader(); this.groupBox1 = new GroupBox(); this.ltvPositions = new ListViewNB(); this.columnHeader6 = new ColumnHeader(); this.columnHeader7 = new ColumnHeader(); this.columnHeader8 = new ColumnHeader(); this.columnHeader9 = new ColumnHeader(); this.columnHeader15 = new ColumnHeader(); this.columnHeader16 = new ColumnHeader(); this.groupBox2.SuspendLayout(); this.groupBox3.SuspendLayout(); this.groupBox1.SuspendLayout(); this.SuspendLayout(); this.groupBox2.Controls.Add((Control) this.ltvTransactions); this.groupBox2.Dock = DockStyle.Fill; this.groupBox2.Location = new Point(0, 117); this.groupBox2.Name = "groupBox2"; this.groupBox2.Size = new Size(745, 312); this.groupBox2.TabIndex = 5; this.groupBox2.TabStop = false; this.groupBox2.Text = "Transactions"; this.ltvTransactions.Columns.AddRange(new ColumnHeader[8] { this.columnHeader1, this.columnHeader2, this.columnHeader3, this.columnHeader4, this.columnHeader5, this.columnHeader15, this.columnHeader16, this.columnHeader14 }); this.ltvTransactions.Dock = DockStyle.Fill; this.ltvTransactions.FullRowSelect = true; this.ltvTransactions.GridLines = true; this.ltvTransactions.HeaderStyle = ColumnHeaderStyle.Nonclickable; this.ltvTransactions.LabelWrap = false; this.ltvTransactions.Location = new Point(3, 16); this.ltvTransactions.Name = "ltvTransactions"; this.ltvTransactions.ShowGroups = false; this.ltvTransactions.ShowItemToolTips = true; this.ltvTransactions.Size = new Size(739, 293); this.ltvTransactions.TabIndex = 0; this.ltvTransactions.UseCompatibleStateImageBehavior = false; this.ltvTransactions.View = View.Details; this.ltvTransactions.VirtualMode = true; this.ltvTransactions.RetrieveVirtualItem += new RetrieveVirtualItemEventHandler(this.ltvTransactions_RetrieveVirtualItem); this.ltvTransactions.SelectedIndexChanged += new EventHandler(this.ltvTransactions_SelectedIndexChanged); this.ltvTransactions.KeyDown += new KeyEventHandler(this.ltvTransactions_KeyDown); this.ltvTransactions.MouseClick += new MouseEventHandler(this.ltvTransactions_MouseClick); this.ltvTransactions.MouseDoubleClick += new MouseEventHandler(this.ltvTransactions_MouseDoubleClick); this.columnHeader1.Text = "DateTime"; this.columnHeader1.Width = 126; this.columnHeader2.Text = "Instrument"; this.columnHeader2.TextAlign = HorizontalAlignment.Right; this.columnHeader2.Width = 88; this.columnHeader3.Text = "Side"; this.columnHeader3.TextAlign = HorizontalAlignment.Right; this.columnHeader3.Width = 62; this.columnHeader4.Text = "Price"; this.columnHeader4.TextAlign = HorizontalAlignment.Right; this.columnHeader4.Width = 68; this.columnHeader5.Text = "Qty"; this.columnHeader5.TextAlign = HorizontalAlignment.Right; this.columnHeader5.Width = 65; this.columnHeader14.Text = "Text"; this.columnHeader14.Width = 250; this.groupBox3.Controls.Add((Control) this.ltvPortfolio); this.groupBox3.Dock = DockStyle.Bottom; this.groupBox3.Location = new Point(0, 429); this.groupBox3.Name = "groupBox3"; this.groupBox3.Size = new Size(745, 81); this.groupBox3.TabIndex = 6; this.groupBox3.TabStop = false; this.groupBox3.Text = "Value"; this.ltvPortfolio.Columns.AddRange(new ColumnHeader[4] { this.columnHeader10, this.columnHeader11, this.columnHeader12, this.columnHeader13 }); this.ltvPortfolio.Dock = DockStyle.Fill; this.ltvPortfolio.GridLines = true; this.ltvPortfolio.Location = new Point(3, 16); this.ltvPortfolio.Name = "ltvPortfolio"; this.ltvPortfolio.Size = new Size(739, 62); this.ltvPortfolio.TabIndex = 0; this.ltvPortfolio.UseCompatibleStateImageBehavior = false; this.ltvPortfolio.View = View.Details; this.columnHeader10.Text = "Currency"; this.columnHeader10.Width = 80; this.columnHeader11.Text = "Account"; this.columnHeader11.TextAlign = HorizontalAlignment.Right; this.columnHeader11.Width = 101; this.columnHeader12.Text = "Position"; this.columnHeader12.TextAlign = HorizontalAlignment.Right; this.columnHeader12.Width = 100; this.columnHeader13.Text = "Portfolio"; this.columnHeader13.TextAlign = HorizontalAlignment.Right; this.columnHeader13.Width = 100; this.groupBox1.Controls.Add((Control) this.ltvPositions); this.groupBox1.Dock = DockStyle.Top; this.groupBox1.Location = new Point(0, 0); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new Size(745, 117); this.groupBox1.TabIndex = 4; this.groupBox1.TabStop = false; this.groupBox1.Text = "Positions"; this.ltvPositions.Columns.AddRange(new ColumnHeader[4] { this.columnHeader6, this.columnHeader7, this.columnHeader8, this.columnHeader9 }); this.ltvPositions.Dock = DockStyle.Fill; this.ltvPositions.FullRowSelect = true; this.ltvPositions.GridLines = true; this.ltvPositions.HeaderStyle = ColumnHeaderStyle.Nonclickable; this.ltvPositions.LabelWrap = false; this.ltvPositions.Location = new Point(3, 16); this.ltvPositions.Name = "ltvPositions"; this.ltvPositions.ShowGroups = false; this.ltvPositions.ShowItemToolTips = true; this.ltvPositions.Size = new Size(739, 98); this.ltvPositions.TabIndex = 0; this.ltvPositions.UseCompatibleStateImageBehavior = false; this.ltvPositions.View = View.Details; this.ltvPositions.SelectedIndexChanged += new EventHandler(this.ltvPositions_SelectedIndexChanged); this.columnHeader6.Text = "Instrument"; this.columnHeader6.Width = 94; this.columnHeader7.Text = "Amount"; this.columnHeader7.TextAlign = HorizontalAlignment.Right; this.columnHeader7.Width = 79; this.columnHeader8.Text = "Bought"; this.columnHeader8.TextAlign = HorizontalAlignment.Right; this.columnHeader8.Width = 72; this.columnHeader9.Text = "Sold"; this.columnHeader9.TextAlign = HorizontalAlignment.Right; this.columnHeader9.Width = 65; this.columnHeader15.Text = "Value"; this.columnHeader15.TextAlign = HorizontalAlignment.Right; this.columnHeader15.Width = 68; this.columnHeader16.Text = "Cost"; this.columnHeader16.TextAlign = HorizontalAlignment.Right; this.AutoScaleDimensions = new SizeF(6f, 13f); this.AutoScaleMode = AutoScaleMode.Font; this.Controls.Add((Control) this.groupBox2); this.Controls.Add((Control) this.groupBox3); this.Controls.Add((Control) this.groupBox1); this.Name = "Composition"; this.Size = new Size(745, 510); this.groupBox2.ResumeLayout(false); this.groupBox3.ResumeLayout(false); this.groupBox1.ResumeLayout(false); this.ResumeLayout(false); }
private void InitializeComponent() { this.components = (IContainer) new Container(); this.listView = new ListViewNB(); this.ctxObjects = new ContextMenuStrip(this.components); this.ctxObjects_Add = new ToolStripMenuItem(); this.ctxObjects_Edit = new ToolStripMenuItem(); this.toolStripMenuItem1 = new ToolStripSeparator(); this.ctxObjects_GoTo = new ToolStripMenuItem(); this.toolStripSeparator1 = new ToolStripSeparator(); this.ctxObjects_DeleteRange = new ToolStripMenuItem(); this.ctxObjects_Delete = new ToolStripMenuItem(); this.ctxObjects.SuspendLayout(); this.SuspendLayout(); this.listView.ContextMenuStrip = this.ctxObjects; this.listView.Dock = DockStyle.Fill; this.listView.FullRowSelect = true; this.listView.GridLines = true; this.listView.HideSelection = false; this.listView.Location = new Point(0, 0); this.listView.Name = "listView"; this.listView.ShowGroups = false; this.listView.Size = new Size(430, 315); this.listView.TabIndex = 0; this.listView.UseCompatibleStateImageBehavior = false; this.listView.View = View.Details; this.listView.VirtualMode = true; this.listView.RetrieveVirtualItem += new RetrieveVirtualItemEventHandler(this.listView_RetrieveVirtualItem); this.listView.DoubleClick += new EventHandler(this.listView_DoubleClick); this.listView.KeyDown += new KeyEventHandler(this.listView_KeyDown); this.ctxObjects.Items.AddRange(new ToolStripItem[7] { (ToolStripItem) this.ctxObjects_Add, (ToolStripItem) this.ctxObjects_Edit, (ToolStripItem) this.toolStripMenuItem1, (ToolStripItem) this.ctxObjects_GoTo, (ToolStripItem) this.toolStripSeparator1, (ToolStripItem) this.ctxObjects_DeleteRange, (ToolStripItem) this.ctxObjects_Delete }); this.ctxObjects.Name = "ctxObjects"; this.ctxObjects.Size = new Size(153, 148); this.ctxObjects.Opening += new CancelEventHandler(this.ctxObjects_Opening); this.ctxObjects_Add.Name = "ctxObjects_Add"; this.ctxObjects_Add.Size = new Size(152, 22); this.ctxObjects_Add.Text = "Add New..."; this.ctxObjects_Add.Click += new EventHandler(this.ctxObjects_Add_Click); this.ctxObjects_Edit.Name = "ctxObjects_Edit"; this.ctxObjects_Edit.Size = new Size(152, 22); this.ctxObjects_Edit.Text = "Edit..."; this.ctxObjects_Edit.Click += new EventHandler(this.ctxObjects_Edit_Click); this.toolStripMenuItem1.Name = "toolStripMenuItem1"; this.toolStripMenuItem1.Size = new Size(149, 6); this.ctxObjects_GoTo.Name = "ctxObjects_GoTo"; this.ctxObjects_GoTo.Size = new Size(152, 22); this.ctxObjects_GoTo.Text = "Go to..."; this.ctxObjects_GoTo.Click += new EventHandler(this.ctxObjects_GoTo_Click); this.toolStripSeparator1.Name = "toolStripSeparator1"; this.toolStripSeparator1.Size = new Size(149, 6); this.ctxObjects_DeleteRange.Name = "ctxObjects_DeleteRange"; this.ctxObjects_DeleteRange.Size = new Size(152, 22); this.ctxObjects_DeleteRange.Text = "Delete Range..."; this.ctxObjects_DeleteRange.Click += new EventHandler(this.ctxObjects_DeleteRange_Click); this.ctxObjects_Delete.Name = "ctxObjects_Delete"; this.ctxObjects_Delete.Size = new Size(152, 22); this.ctxObjects_Delete.Text = "Delete"; this.ctxObjects_Delete.Click += new EventHandler(this.ctxObjects_Delete_Click); this.AutoScaleDimensions = new SizeF(6f, 13f); this.AutoScaleMode = AutoScaleMode.Font; this.Controls.Add((Control) this.listView); this.Name = "DataSeriesViewer"; this.Size = new Size(430, 315); this.ctxObjects.ResumeLayout(false); this.ResumeLayout(false); }
private void InitializeComponent() { this.columnHeader2 = new ColumnHeader(); this.columnHeader1 = new ColumnHeader(); this.ltvStatistics = new ListViewNB(); this.columnHeader3 = new ColumnHeader(); this.columnHeader4 = new ColumnHeader(); this.tcStatistiscs = new TabControl(); this.tabPage1 = new TabPage(); this.chrtStatistics = new SmartQuant.FinChart.Chart(); this.tabPage2 = new TabPage(); this.chrtHist = new SmartQuant.Charting.Chart(); this.tabPage3 = new TabPage(); this.ltvData = new ListViewNB(); this.columnHeader5 = new ColumnHeader(); this.columnHeader6 = new ColumnHeader(); this.splitter1 = new Splitter(); this.tcStatistiscs.SuspendLayout(); this.tabPage1.SuspendLayout(); this.tabPage2.SuspendLayout(); this.tabPage3.SuspendLayout(); this.SuspendLayout(); this.columnHeader2.Text = "All Trades"; this.columnHeader2.TextAlign = HorizontalAlignment.Right; this.columnHeader2.Width = 140; this.columnHeader1.Text = "Name"; this.columnHeader1.Width = 200; this.ltvStatistics.Columns.AddRange(new ColumnHeader[4] { this.columnHeader1, this.columnHeader2, this.columnHeader3, this.columnHeader4 }); this.ltvStatistics.Dock = DockStyle.Fill; this.ltvStatistics.Location = new Point(0, 0); this.ltvStatistics.Name = "ltvStatistics"; this.ltvStatistics.Size = new Size(526, 163); this.ltvStatistics.TabIndex = 1; this.ltvStatistics.UseCompatibleStateImageBehavior = false; this.ltvStatistics.View = View.Details; this.ltvStatistics.SelectedIndexChanged += new EventHandler(this.ltvStatistics_SelectedIndexChanged); this.columnHeader3.Text = "Long Trades"; this.columnHeader3.TextAlign = HorizontalAlignment.Right; this.columnHeader3.Width = 140; this.columnHeader4.Text = "Short Trades"; this.columnHeader4.TextAlign = HorizontalAlignment.Right; this.columnHeader4.Width = 140; this.tcStatistiscs.Controls.Add((Control) this.tabPage1); this.tcStatistiscs.Controls.Add((Control) this.tabPage2); this.tcStatistiscs.Controls.Add((Control) this.tabPage3); this.tcStatistiscs.Dock = DockStyle.Bottom; this.tcStatistiscs.Location = new Point(0, 166); this.tcStatistiscs.Multiline = true; this.tcStatistiscs.Name = "tcStatistiscs"; this.tcStatistiscs.SelectedIndex = 0; this.tcStatistiscs.Size = new Size(526, 203); this.tcStatistiscs.TabIndex = 4; this.tabPage1.Controls.Add((Control) this.chrtStatistics); this.tabPage1.Location = new Point(4, 22); this.tabPage1.Name = "tabPage1"; this.tabPage1.Padding = new Padding(3); this.tabPage1.Size = new Size(518, 177); this.tabPage1.TabIndex = 0; this.tabPage1.Text = "Chart"; this.tabPage1.UseVisualStyleBackColor = true; this.chrtStatistics.ActionType = ChartActionType.None; this.chrtStatistics.AutoScroll = true; this.chrtStatistics.BarSeriesStyle = BSStyle.Candle; this.chrtStatistics.BorderColor = Color.Gray; this.chrtStatistics.BottomAxisGridColor = Color.LightGray; this.chrtStatistics.BottomAxisLabelColor = Color.LightGray; this.chrtStatistics.CanvasColor = Color.MidnightBlue; this.chrtStatistics.ChartBackColor = Color.MidnightBlue; this.chrtStatistics.ContextMenuEnabled = true; this.chrtStatistics.CrossColor = Color.DarkGray; this.chrtStatistics.DateTipRectangleColor = Color.LightGray; this.chrtStatistics.DateTipTextColor = Color.Black; this.chrtStatistics.Dock = DockStyle.Fill; this.chrtStatistics.DrawItems = false; this.chrtStatistics.Font = new Font("Microsoft Sans Serif", 7f, FontStyle.Regular, GraphicsUnit.Point, (byte) 204); this.chrtStatistics.ItemTextColor = Color.LightGray; this.chrtStatistics.LabelDigitsCount = 2; this.chrtStatistics.Location = new Point(3, 3); this.chrtStatistics.MinNumberOfBars = 125; this.chrtStatistics.Name = "chrtStatistics"; this.chrtStatistics.PrimitiveDeleteImage = (Image) null; this.chrtStatistics.PrimitivePropertiesImage = (Image) null; this.chrtStatistics.RightAxesFontSize = 7; this.chrtStatistics.RightAxisGridColor = Color.DimGray; this.chrtStatistics.RightAxisMajorTicksColor = Color.LightGray; this.chrtStatistics.RightAxisMinorTicksColor = Color.LightGray; this.chrtStatistics.RightAxisTextColor = Color.LightGray; this.chrtStatistics.ScaleStyle = PadScaleStyle.Arith; this.chrtStatistics.SelectedFillHighlightColor = Color.FromArgb(100, 173, 216, 230); this.chrtStatistics.SelectedItemTextColor = Color.Yellow; this.chrtStatistics.SessionEnd = TimeSpan.Parse("00:00:00"); this.chrtStatistics.SessionGridColor = Color.Empty; this.chrtStatistics.SessionGridEnabled = false; this.chrtStatistics.SessionStart = TimeSpan.Parse("00:00:00"); this.chrtStatistics.Size = new Size(512, 171); this.chrtStatistics.SmoothingMode = SmoothingMode.Default; this.chrtStatistics.SplitterColor = Color.LightGray; this.chrtStatistics.TabIndex = 2; this.chrtStatistics.UpdateStyle = ChartUpdateStyle.WholeRange; this.chrtStatistics.ValTipRectangleColor = Color.LightGray; this.chrtStatistics.ValTipTextColor = Color.Black; this.chrtStatistics.VolumePadVisible = false; this.tabPage2.Controls.Add((Control) this.chrtHist); this.tabPage2.Location = new Point(4, 22); this.tabPage2.Name = "tabPage2"; this.tabPage2.Padding = new Padding(3); this.tabPage2.Size = new Size(518, 177); this.tabPage2.TabIndex = 1; this.tabPage2.Text = "Histogram"; this.tabPage2.UseVisualStyleBackColor = true; this.chrtHist.AntiAliasingEnabled = false; this.chrtHist.Dock = DockStyle.Fill; this.chrtHist.DoubleBufferingEnabled = true; this.chrtHist.FileName = (string) null; this.chrtHist.GroupLeftMarginEnabled = false; this.chrtHist.GroupRightMarginEnabled = false; this.chrtHist.GroupZoomEnabled = false; this.chrtHist.Location = new Point(3, 3); this.chrtHist.Name = "chrtHist"; this.chrtHist.PadsForeColor = Color.White; this.chrtHist.PrintAlign = EPrintAlign.None; this.chrtHist.PrintHeight = 400; this.chrtHist.PrintLayout = EPrintLayout.Portrait; this.chrtHist.PrintWidth = 600; this.chrtHist.PrintX = 10; this.chrtHist.PrintY = 10; this.chrtHist.SessionEnd = TimeSpan.Parse("1.00:00:00"); this.chrtHist.SessionGridColor = Color.Blue; this.chrtHist.SessionGridEnabled = false; this.chrtHist.SessionStart = TimeSpan.Parse("00:00:00"); this.chrtHist.Size = new Size(512, 171); this.chrtHist.SmoothingEnabled = false; this.chrtHist.TabIndex = 0; this.chrtHist.TransformationType = ETransformationType.Empty; this.tabPage3.Controls.Add((Control) this.ltvData); this.tabPage3.Location = new Point(4, 22); this.tabPage3.Name = "tabPage3"; this.tabPage3.Size = new Size(518, 177); this.tabPage3.TabIndex = 2; this.tabPage3.Text = "Data"; this.tabPage3.UseVisualStyleBackColor = true; this.ltvData.Columns.AddRange(new ColumnHeader[2] { this.columnHeader5, this.columnHeader6 }); this.ltvData.Dock = DockStyle.Fill; this.ltvData.Location = new Point(0, 0); this.ltvData.Name = "ltvData"; this.ltvData.Size = new Size(518, 177); this.ltvData.TabIndex = 0; this.ltvData.UseCompatibleStateImageBehavior = false; this.ltvData.View = View.Details; this.columnHeader5.Text = "Date Tme"; this.columnHeader5.Width = 150; this.columnHeader6.Text = "Total Value"; this.columnHeader6.TextAlign = HorizontalAlignment.Right; this.columnHeader6.Width = 120; this.splitter1.Dock = DockStyle.Bottom; this.splitter1.Location = new Point(0, 163); this.splitter1.Name = "splitter1"; this.splitter1.Size = new Size(526, 3); this.splitter1.TabIndex = 5; this.splitter1.TabStop = false; this.AutoScaleDimensions = new SizeF(6f, 13f); this.AutoScaleMode = AutoScaleMode.Font; this.Controls.Add((Control) this.ltvStatistics); this.Controls.Add((Control) this.splitter1); this.Controls.Add((Control) this.tcStatistiscs); this.Name = "Statistics"; this.Size = new Size(526, 369); this.tcStatistiscs.ResumeLayout(false); this.tabPage1.ResumeLayout(false); this.tabPage2.ResumeLayout(false); this.tabPage3.ResumeLayout(false); this.ResumeLayout(false); }