Esempio n. 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;
     }
 }