Advertisement
Guest User

Untitled

a guest
Apr 20th, 2014
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. switch (pos)
  2. {
  3. case 1:
  4. lineShape1.Visible = true;
  5. lineShape32.Visible = false;
  6. break;
  7. case 2:
  8. lineShape2.Visible = true;
  9. lineShape1.Visible = false;
  10. break;
  11. case 3:
  12. lineShape3.Visible = true;
  13. lineShape2.Visible = false;
  14. break;
  15. //cases repeated 32 times
  16. }
  17.  
  18. CheckBox snabox = this.Controls["checkBox" + pos.ToString()] as CheckBox;
  19. if (snabox.Checked)
  20. {
  21. Snare_Click(null, null);
  22. }
  23.  
  24. lineShapes[pos-1].Visible = true;
  25. pos == 1 ? lineShapes[lineShapes.Length - 1].Visible = false : lineShapes[pos-2].Visible = false;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement