Advertisement
Guest User

Untitled

a guest
Mar 30th, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. for (int i = 0; i != amount.Length; i++)
  2. {
  3. if (amount[i] > 0)
  4. {
  5. string button = "Button" + i;
  6. Button[i].Visible = true;
  7.  
  8. }
  9. }
  10.  
  11. for (int i = 0; i != amount.Length; i++)
  12. {
  13. if (amount[0] > 0)
  14. {
  15.  
  16. button.Visible = true;
  17.  
  18. }
  19.  
  20.  
  21.  
  22.  
  23. else if (amount[1] > 0)
  24. {
  25.  
  26. button.Visible = true;
  27.  
  28. }
  29.  
  30. #And so on (goes up to whatever the amount of numbers are in the array)...
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement