예제 #1
0
파일: Pad.cs 프로젝트: heber/FreeOQ
		public Pad(Chart Chart, double X1, double Y1, double X2, double Y2) : base()
		{
			this.fChart = Chart;
			this.fCanvasX1 = X1;
			this.fCanvasX2 = X2;
			this.fCanvasY1 = Y1;
			this.fCanvasY2 = Y2;
			this.Init();
		}
예제 #2
0
 private void InitializeComponent()
 {
     this.toolStrip           = new ToolStrip();
     this.tbxSelectedDate     = new ToolStripTextBox();
     this.btnDate             = new ToolStripButton();
     this.toolStripSeparator1 = new ToolStripSeparator();
     this.lblObjectCount      = new ToolStripLabel();
     this.chart = new Chart();
     this.toolStrip.SuspendLayout();
     this.SuspendLayout();
     this.toolStrip.Items.AddRange(new ToolStripItem[4]
     {
         (ToolStripItem)this.tbxSelectedDate,
         (ToolStripItem)this.btnDate,
         (ToolStripItem)this.toolStripSeparator1,
         (ToolStripItem)this.lblObjectCount
     });
     this.toolStrip.Location               = new Point(0, 0);
     this.toolStrip.Name                   = "toolStrip";
     this.toolStrip.Size                   = new Size(415, 25);
     this.toolStrip.TabIndex               = 0;
     this.toolStrip.Text                   = "toolStrip1";
     this.tbxSelectedDate.BackColor        = SystemColors.Window;
     this.tbxSelectedDate.Name             = "tbxSelectedDate";
     this.tbxSelectedDate.ReadOnly         = true;
     this.tbxSelectedDate.Size             = new Size(100, 25);
     this.tbxSelectedDate.TextBoxTextAlign = HorizontalAlignment.Center;
     this.btnDate.DisplayStyle             = ToolStripItemDisplayStyle.Image;
     this.btnDate.Image = (Image)Resources.dropdown;
     this.btnDate.ImageTransparentColor = Color.Magenta;
     this.btnDate.Name                  = "btnDate";
     this.btnDate.Size                  = new Size(23, 22);
     this.btnDate.ToolTipText           = "Select date";
     this.btnDate.Click                += new EventHandler(this.btnDate_Click);
     this.toolStripSeparator1.Name      = "toolStripSeparator1";
     this.toolStripSeparator1.Size      = new Size(6, 25);
     this.lblObjectCount.Name           = "lblObjectCount";
     this.lblObjectCount.Size           = new Size(0, 22);
     this.chart.AntiAliasingEnabled     = false;
     ((Control)this.chart).Dock         = DockStyle.Fill;
     this.chart.DoubleBufferingEnabled  = true;
     this.chart.FileName                = null;
     this.chart.GroupLeftMarginEnabled  = false;
     this.chart.GroupRightMarginEnabled = false;
     this.chart.GroupZoomEnabled        = false;
     ((Control)this.chart).Location     = new Point(0, 25);
     ((Control)this.chart).Name         = "chart";
     this.chart.PadsForeColor           = Color.White;
     this.chart.PrintAlign              = (EPrintAlign)3;
     this.chart.PrintHeight             = 400;
     this.chart.PrintLayout             = (EPrintLayout)0;
     this.chart.PrintWidth              = 600;
     this.chart.PrintX                  = 10;
     this.chart.PrintY                  = 10;
     this.chart.SessionEnd              = TimeSpan.Parse("1.00:00:00");
     this.chart.SessionGridColor        = Color.Blue;
     this.chart.SessionGridEnabled      = false;
     this.chart.SessionStart            = TimeSpan.Parse("00:00:00");
     ((Control)this.chart).Size         = new Size(415, 186);
     this.chart.SmoothingEnabled        = false;
     ((Control)this.chart).TabIndex     = 1;
     this.chart.TransformationType      = (ETransformationType)0;
     this.AutoScaleDimensions           = new SizeF(6f, 13f);
     this.Controls.Add((Control)this.chart);
     this.Controls.Add((Control)this.toolStrip);
     this.Name = "IntradayChartPanel";
     this.Size = new Size(415, 211);
     this.toolStrip.ResumeLayout(false);
     this.toolStrip.PerformLayout();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
예제 #3
0
파일: Pad.cs 프로젝트: heber/FreeOQ
		public Pad(Chart Chart) : base()
		{
			this.fChart = Chart;
			this.Init();
		}
예제 #4
0
    private void InitializeComponent()
    {
      this.toolStrip = new ToolStrip();
      this.tbxSelectedDate = new ToolStripTextBox();
      this.btnDate = new ToolStripButton();
      this.toolStripSeparator1 = new ToolStripSeparator();
      this.lblObjectCount = new ToolStripLabel();
      this.chart = new Chart();
      this.toolStrip.SuspendLayout();
      this.SuspendLayout();
      this.toolStrip.Items.AddRange(new ToolStripItem[4]
      {
        (ToolStripItem) this.tbxSelectedDate,
        (ToolStripItem) this.btnDate,
        (ToolStripItem) this.toolStripSeparator1,
        (ToolStripItem) this.lblObjectCount
      });
      this.toolStrip.Location = new Point(0, 0);
      this.toolStrip.Name = "toolStrip";
      this.toolStrip.Size = new Size(415, 25);
      this.toolStrip.TabIndex = 0;
      this.toolStrip.Text = "toolStrip1";
      this.tbxSelectedDate.BackColor = SystemColors.Window;
      this.tbxSelectedDate.Name = "tbxSelectedDate";
      this.tbxSelectedDate.ReadOnly = true;
      this.tbxSelectedDate.Size = new Size(100, 25);
      this.tbxSelectedDate.TextBoxTextAlign = HorizontalAlignment.Center;
      this.btnDate.DisplayStyle = ToolStripItemDisplayStyle.Image;
      this.btnDate.Image = (Image) Resources.dropdown;
      this.btnDate.ImageTransparentColor = Color.Magenta;
      this.btnDate.Name = "btnDate";
      this.btnDate.Size = new Size(23, 22);
      this.btnDate.ToolTipText = "Select date";
      this.btnDate.Click += new EventHandler(this.btnDate_Click);
      this.toolStripSeparator1.Name = "toolStripSeparator1";
      this.toolStripSeparator1.Size = new Size(6, 25);
      this.lblObjectCount.Name = "lblObjectCount";
      this.lblObjectCount.Size = new Size(0, 22);
			this.chart.AntiAliasingEnabled = false;
      ((Control) this.chart).Dock = DockStyle.Fill;
			this.chart.DoubleBufferingEnabled = true;
			this.chart.FileName = null;
			this.chart.GroupLeftMarginEnabled = false;
			this.chart.GroupRightMarginEnabled = false;
			this.chart.GroupZoomEnabled = false;
      ((Control) this.chart).Location = new Point(0, 25);
      ((Control) this.chart).Name = "chart";
			this.chart.PadsForeColor = Color.White;
			this.chart.PrintAlign = (EPrintAlign) 3;
			this.chart.PrintHeight=400;
			this.chart.PrintLayout = (EPrintLayout) 0;
			this.chart.PrintWidth = 600;
			this.chart.PrintX = 10;
			this.chart.PrintY = 10;
			this.chart.SessionEnd = TimeSpan.Parse("1.00:00:00");
			this.chart.SessionGridColor = Color.Blue;
			this.chart.SessionGridEnabled = false;
			this.chart.SessionStart = TimeSpan.Parse("00:00:00");
      ((Control) this.chart).Size = new Size(415, 186);
			this.chart.SmoothingEnabled = false;
      ((Control) this.chart).TabIndex = 1;
			this.chart.TransformationType = (ETransformationType) 0;
      this.AutoScaleDimensions = new SizeF(6f, 13f);
      this.Controls.Add((Control) this.chart);
      this.Controls.Add((Control) this.toolStrip);
      this.Name = "IntradayChartPanel";
      this.Size = new Size(415, 211);
      this.toolStrip.ResumeLayout(false);
      this.toolStrip.PerformLayout();
      this.ResumeLayout(false);
      this.PerformLayout();
    }