Пример #1
0
 public GraphDataCollection(GraphCtrl.GraphData[] value)
 {
     AddRange(value);
 }
Пример #2
0
 public int Add(GraphCtrl.GraphData value)
 {
     return base.List.Add(value);
 }
Пример #3
0
 public GraphData(List<int> value, Color color, Color colorGradient, string text, GraphCtrl.eGraphType graphType)
 {
     _value = value;
     _color = color;
     _text = text;
     _colorGradient = colorGradient;
     _graphType = graphType;
 }
Пример #4
0
 public GraphData(List<int> value, System.Drawing.Color color, System.Drawing.Color colorGradient, string text, GraphCtrl.eGraphType graphType)
 {
     _value = new List<int>();
     _maxWidth = 15;
     _graphType = GraphCtrl.eGraphType.Line;
     _value = value;
     _color = color;
     _text = text;
     _colorGradient = colorGradient;
     _graphType = graphType;
 }
Пример #5
0
 public int IndexOf(GraphCtrl.GraphData value)
 {
     return base.List.IndexOf(value);
 }
Пример #6
0
 public void Remove(GraphCtrl.GraphData value)
 {
     base.Capacity--;
     base.List.Remove(value);
 }
Пример #7
0
 public int IndexOf(GraphCtrl.GraphData value)
 {
     return List.IndexOf((object)value);
 }
Пример #8
0
 public bool Contains(GraphCtrl.GraphData value)
 {
     return base.List.Contains(value);
 }
Пример #9
0
 public bool Contains(GraphCtrl.GraphData value)
 {
     return List.Contains((object)value);
 }
Пример #10
0
 public void CopyTo(GraphCtrl.GraphData[] array, int index)
 {
     List.CopyTo((Array)array, index);
 }
Пример #11
0
 public void AddRange(GraphCtrl.GraphDataCollection value)
 {
     for (int index = 0; index < value.Count; ++index)
         Add(value[index]);
 }
Пример #12
0
 public void AddRange(GraphCtrl.GraphData[] value)
 {
     for (int index = 0; index < value.Length; ++index)
         Add(value[index]);
 }
Пример #13
0
 public int Add(GraphCtrl.GraphData value)
 {
     return List.Add((object)value);
 }
Пример #14
0
 public void AddRange(GraphCtrl.GraphData[] value)
 {
     for (int i = 0; i < value.Length; i++)
     {
         Add(value[i]);
     }
 }
Пример #15
0
 public void Insert(int index, GraphCtrl.GraphData value)
 {
     List.Insert(index, (object)value);
 }
Пример #16
0
 public void AddRange(GraphCtrl.GraphDataCollection value)
 {
     for (int i = 0; i < value.Count; i++)
     {
         Add(value[i]);
     }
 }
Пример #17
0
 public void Remove(GraphCtrl.GraphData value)
 {
     --Capacity;
     List.Remove((object)value);
 }
Пример #18
0
 public void CopyTo(GraphCtrl.GraphData[] array, int index)
 {
     base.List.CopyTo(array, index);
 }
Пример #19
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;
 }
Пример #20
0
 public void Insert(int index, GraphCtrl.GraphData value)
 {
     base.List.Insert(index, value);
 }
Пример #21
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;
 }
Пример #22
0
 public GraphDataEnumerator(GraphCtrl.GraphDataCollection mappings)
 {
     temp = mappings;
     baseEnumerator = temp.GetEnumerator();
 }
Пример #23
0
 public GraphData(List<int> value, Color color, GraphCtrl.eGraphType graphType)
 {
     _value = value;
     _color = color;
     _graphType = graphType;
 }