コード例 #1
0
 private void ToggleBouncing(int index, Label labelToBounce)
 {
     if (bouncers[index] == null)
     {
         bouncers[index] = new LabelBouncer();
         bouncers[index].MyLabel = labelToBounce;
     }
     else
     {
         bouncers[index] = null;
     }
 }
コード例 #2
0
ファイル: Form1.cs プロジェクト: talbert1209/BouncingLabels
 public void ToggleBouncers(int index, Label labelToBounce)
 {
     if (bouncers[index] == null)
     {
         bouncers[index]         = new LabelBouncer();
         bouncers[index].MyLabel = labelToBounce;
     }
     else
     {
         bouncers[index] = null;
     }
 }
コード例 #3
0
 private void ToggleBouncing(int index, Label labeltoBounce)
 {
     if (bouncers[index] == null)
     {
         bouncers[index]         = new LabelBouncer();
         bouncers[index].MyLabel = labeltoBounce;
     }
     else
     {
         bouncers[index] = null;
     }
 }