Exemplo n.º 1
0
 /// <summary>
 /// Adds a large weight with the given color to the control
 /// </summary>
 /// <param name="color">The color of the large weight</param>
 public void AddSmallWeight(Color color)
 {
     BarBellWeight weight = new BarBellWeight(color, 0, 0, true);
     weights.Add(weight);
     Invalidate();
 }
Exemplo n.º 2
0
 /// <summary>
 /// Adds a weight to the control
 /// </summary>
 /// <param name="barBellWeight">The weight object to add</param>
 public void AddWeight(BarBellWeight barBellWeight)
 {
     weights.Add(barBellWeight);
     Invalidate();
 }
Exemplo n.º 3
0
 /// <summary>
 /// Adds a large weight with the given color to the control
 /// </summary>
 /// <param name="color">The color of the large weight</param>
 public void AddLargeWeight(Color color)
 {
     BarBellWeight weight = new BarBellWeight(color, 0, 0, false);
     weights.Add(weight);
     Invalidate();
 }