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)); }
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; } }