Guest User

Untitled

a guest
Jan 16th, 2019
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. private void display_combination()
  2. {
  3. for (int i = 0; i < MAX_INPUT; i++)
  4. {
  5. switch(combination[i])
  6. {
  7. case 0: button_flash(this.Up_Button); break;
  8. case 1: button_flash(this.Down_Button); break;
  9. case 2: button_flash(this.Left_Button); break;
  10. case 3: button_flash(this.Right_Button); break;
  11. }
  12. }
  13. }
  14.  
  15. void button_flash(Button b)
  16. {
  17. b.IsEnabled.Equals(0);
  18. //perhaps a pause her and then enable the button again?
  19.  
  20. }
Add Comment
Please, Sign In to add comment