private List<Point> GetPointsZoom(GraphCtrl.GraphData graphData) { List<Point> list = new List<Point>(); if (this.FrameZoom.Height != 0 && this.FrameZoom.Width != 0) { Point point = new Point(); for (int index = 0; index < graphData.Value.Count; ++index) { int num = this.frameFull.Right - graphData.Value.Count + index; point.Y = this.workingArea.Bottom - this.workingArea.Height * (graphData.Value[index] - this.FrameZoom.Bottom) / this.FrameZoom.Height; point.X = this.workingArea.Right - this.workingArea.Width * (this.FrameZoom.Right - num) / this.FrameZoom.Width; list.Add(point); } } return list; }
public GraphDataEnumerator(GraphCtrl.GraphDataCollection mappings) { this.temp = (IEnumerable)mappings; this.baseEnumerator = this.temp.GetEnumerator(); }
public void AddData(int series, int data, Color color, GraphCtrl.eGraphType graphType) { if (series >= this.dataCollection.Count) this.dataCollection.Add(new GraphCtrl.GraphData(new List<int>(data), color, graphType)); this.dataCollection[series].Color = color; this.dataCollection[series].Value.Add(data); if (this.dataCollection[series].Value.Count > this.history) this.dataCollection[series].Value.RemoveRange(0, this.dataCollection[series].Value.Count - this.history); this.updateData = true; }
public void Insert(int index, GraphCtrl.GraphData value) { this.List.Insert(index, (object)value); }
public void Remove(GraphCtrl.GraphData value) { --this.Capacity; this.List.Remove((object)value); }
public void CopyTo(GraphCtrl.GraphData[] array, int index) { this.List.CopyTo((Array)array, index); }
public int IndexOf(GraphCtrl.GraphData value) { return this.List.IndexOf((object)value); }
public void AddRange(GraphCtrl.GraphDataCollection value) { for (int index = 0; index < value.Count; ++index) this.Add(value[index]); }
public bool Contains(GraphCtrl.GraphData value) { return this.List.Contains((object)value); }
public void AddRange(GraphCtrl.GraphData[] value) { for (int index = 0; index < value.Length; ++index) this.Add(value[index]); }
public int Add(GraphCtrl.GraphData value) { return this.List.Add((object)value); }
public GraphDataCollection(GraphCtrl.GraphData[] value) { this.AddRange(value); }
public GraphData(List<int> value, Color color, Color colorGradient, string text, GraphCtrl.eGraphType graphType) { this._value = value; this._color = color; this._text = text; this._colorGradient = colorGradient; this._graphType = graphType; }
public GraphData(List<int> value, Color color, GraphCtrl.eGraphType graphType) { this._value = value; this._color = color; this._graphType = graphType; }