コード例 #1
0
ファイル: BarBell.cs プロジェクト: mannsi/HL-Projects
 /// <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();
 }
コード例 #2
0
ファイル: BarBell.cs プロジェクト: mannsi/HL-Projects
 /// <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();
 }
コード例 #3
0
ファイル: BarBell.cs プロジェクト: mannsi/HL-Projects
 /// <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();
 }