Esempio n. 1
0
 public LineView(DrawingLine line, Pad pad) : base()
 {
     this.drawingLine    = line;
     this.pad            = pad;
     this.ToolTipEnabled = true;
     this.ToolTipFormat  = "tootllf";
     this.chartFirstDate = new DateTime(Math.Min(line.X1.Ticks, line.X2.Ticks));
     this.chartLastDate  = new DateTime(Math.Max(line.X1.Ticks, line.X2.Ticks));
 }
Esempio n. 2
0
		public LineView(DrawingLine line, Pad pad) : base()
		{
			this.drawingLine = line;
			this.pad = pad;
			this.ToolTipEnabled = true;
			this.ToolTipFormat = "tootllf";
			this.chartFirstDate = new DateTime(Math.Min(line.X1.Ticks, line.X2.Ticks));
			this.chartLastDate = new DateTime(Math.Max(line.X1.Ticks, line.X2.Ticks));
		}
Esempio n. 3
0
		public void DrawLine(DrawingLine line, int padNumber)
		{
			lock(this.dataLock)
			{
				if (!this.volumePadShown && padNumber > 1)
					--padNumber;
				LineView view = new LineView(line, this.pads[padNumber]);
				line.Updated += new EventHandler(this.HandleUpdated);
				this.pads[padNumber].AddPrimitive((IChartDrawable)view);
				view.SetInterval(this.leftDateTime, this.rightDateTime);
				this.contentUpdated = true;
			}
		}