Ejemplo n.º 1
0
 /// <summary>
 /// Adds the range.
 /// </summary>
 /// <param name="value">The value.</param>
 public void AddRange(PieSliceCollection value)
 {
     for (int i = 0; (i < value.Count); i = (i + 1))
     {
         Add(value[i]);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PieSliceCollection"/> class.
 /// </summary>
 /// <param name="value">The value.</param>
 public PieSliceCollection(PieSliceCollection value)
 {
     AddRange(value);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PieSliceEnumerator"/> class.
 /// </summary>
 /// <param name="mappings">The mappings.</param>
 public PieSliceEnumerator(PieSliceCollection mappings)
 {
     temp           = ((IEnumerable)(mappings));
     baseEnumerator = temp.GetEnumerator();
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PieGraph"/> class.
 /// </summary>
 /// <param name="width">The width.</param>
 /// <param name="height">The height.</param>
 public PieGraph(int width, int height)
     : base(width, height)
 {
     pieSliceCollection = new PieSliceCollection();
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PieGraph"/> class.
 /// </summary>
 /// <param name="size">The size.</param>
 public PieGraph(Size size)
     : base(size)
 {
     pieSliceCollection = new PieSliceCollection();
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PieGraph"/> class.
 /// </summary>
 public PieGraph()
 {
     pieSliceCollection = new PieSliceCollection();
 }