Example #1
0
 public static int getInput(int numChoices)
 {
     choice = new Choice(0, (numChoices - 1));
     if (OnInput != null)
     {
         EventArgsChoice argument = new EventArgsChoice(choice);
         OnInput(null, argument);
         return choice.getInt();
     }
     else
     {
         return 0;
     }
 }
 void UI_OnInput(object sender, EventArgsChoice e)
 {
     makeChoice(e.Value);
 }