Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2014
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. private void ComboBox1_SelectedIndexChanged(object sender, System.EventArgs e)
  2. {
  3.  
  4. ComboBox comboBox = (ComboBox) sender;
  5.  
  6. string userSelection = (string)ComboBox1.SelectedItem;
  7.  
  8. private void SetControlsToDefault()
  9. {
  10.  
  11. }
  12.  
  13. if (userSelection.Equals("selection1")
  14. {
  15. ShowControlsForSelectionOne();
  16. }
  17. else if (userSelection.Equals("selection2")
  18. {
  19. ShowControlsForSelectionTwo();
  20. }
  21. else if (userSelection.Equals("selection3")
  22. {
  23. ShowControlsForSelectionThree();
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement