Пример #1
0
 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;
 }
Пример #2
0
 public GraphDataEnumerator(GraphCtrl.GraphDataCollection mappings)
 {
     this.temp = (IEnumerable)mappings;
     this.baseEnumerator = this.temp.GetEnumerator();
 }
Пример #3
0
 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;
 }
Пример #4
0
 public void Insert(int index, GraphCtrl.GraphData value)
 {
     this.List.Insert(index, (object)value);
 }
Пример #5
0
 public void Remove(GraphCtrl.GraphData value)
 {
     --this.Capacity;
     this.List.Remove((object)value);
 }
Пример #6
0
 public void CopyTo(GraphCtrl.GraphData[] array, int index)
 {
     this.List.CopyTo((Array)array, index);
 }
Пример #7
0
 public int IndexOf(GraphCtrl.GraphData value)
 {
     return this.List.IndexOf((object)value);
 }
Пример #8
0
 public void AddRange(GraphCtrl.GraphDataCollection value)
 {
     for (int index = 0; index < value.Count; ++index)
         this.Add(value[index]);
 }
Пример #9
0
 public bool Contains(GraphCtrl.GraphData value)
 {
     return this.List.Contains((object)value);
 }
Пример #10
0
 public void AddRange(GraphCtrl.GraphData[] value)
 {
     for (int index = 0; index < value.Length; ++index)
         this.Add(value[index]);
 }
Пример #11
0
 public int Add(GraphCtrl.GraphData value)
 {
     return this.List.Add((object)value);
 }
Пример #12
0
 public GraphDataCollection(GraphCtrl.GraphData[] value)
 {
     this.AddRange(value);
 }
Пример #13
0
 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;
 }
Пример #14
0
 public GraphData(List<int> value, Color color, GraphCtrl.eGraphType graphType)
 {
     this._value = value;
     this._color = color;
     this._graphType = graphType;
 }