Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (int i = 0; i != amount.Length; i++)
- {
- if (amount[i] > 0)
- {
- string button = "Button" + i;
- Button[i].Visible = true;
- }
- }
- for (int i = 0; i != amount.Length; i++)
- {
- if (amount[0] > 0)
- {
- button.Visible = true;
- }
- else if (amount[1] > 0)
- {
- button.Visible = true;
- }
- #And so on (goes up to whatever the amount of numbers are in the array)...
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement