Inheritance: UserControl
Beispiel #1
0
 private void InitComponent()
 {
     this.chart = new Chart();
     this.cbxSelector = new ComboBox();
     this.SuspendLayout();
     this.cbxSelector.Dock = DockStyle.Top;
     this.cbxSelector.DropDownStyle = ComboBoxStyle.DropDownList;
     this.cbxSelector.FormattingEnabled = true;
     this.cbxSelector.TabIndex = 1;
     this.cbxSelector.SelectedIndexChanged += new EventHandler(OnSelectorValueChanged);
     this.chart.Dock = DockStyle.Fill;
     this.chart.TabIndex = 0;
     InitChartCommon();
     this.AutoScaleMode = AutoScaleMode.Font;
     this.Controls.Add(this.chart);
     this.Controls.Add(this.cbxSelector);
     this.ResumeLayout(false);
 }
Beispiel #2
0
 private void InitComponent()
 {
     this.chart = new Chart();
     this.cbxSelector = ComboBox.NewText();
     this.cbxSelector.Changed += OnSelectorValueChanged;
     InitChartCommon();
     VBox vb = new VBox();
     vb.PackStart(this.cbxSelector, false, true, 0);
     vb.PackEnd(this.chart, true, true, 0);
     Add(vb);
     ShowAll();
 }
Beispiel #3
0
 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);
 }
Beispiel #4
0
 private void InitializeComponent()
 {
     this.chart = new Chart();
     #if GTK
     Add(chart);
     #else
     this.SuspendLayout();
     this.chart.AntiAliasingEnabled = false;
     this.chart.Dock = DockStyle.Fill;
     this.chart.DoubleBufferingEnabled = true;
     this.chart.FileName = null;
     this.chart.GroupLeftMarginEnabled = false;
     this.chart.GroupZoomEnabled = false;
     this.chart.ImeMode = ImeMode.Off;
     this.chart.Location = new Point(0, 0);
     this.chart.Name = "fChart";
     this.chart.PrintAlign = EPrintAlign.None;
     this.chart.PrintHeight = 400;
     this.chart.PrintLayout = EPrintLayout.Portrait;
     this.chart.PrintWidth = 600;
     this.chart.PrintX = 10;
     this.chart.PrintY = 10;
     this.chart.Size = new Size(488, 293);
     this.chart.SmoothingEnabled = false;
     this.chart.TabIndex = 0;
     this.AutoScaleBaseSize = new Size(5, 13);
     this.ClientSize = new Size(488, 293);
     this.Controls.Add(this.chart);
     this.Name = "TCanvas";
     this.Text = "TCanvas";
     this.ResumeLayout(false);
     #endif
 }
Beispiel #5
0
 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);
 }