상속: System.EventArgs
예제 #1
0
 public void GameUpdateUIElement(object obj, UpdateUIStateEventArgs args)
 {
     if (UpdateUIElement != null)
     {
         UpdateUIElement(this, args);
     }
 }
예제 #2
0
 // Gamesession has requested a question refresh
 public void SessionUpdateUIElement(object o, UpdateUIStateEventArgs args)
 {
     switch (args.EventType) {
     case UpdateUIStateEventArgs.EventUIType.QuestionText:
         UpdateQuestion ((string) args.Data);
         ActiveInputControls (true);
         break;
     case UpdateUIStateEventArgs.EventUIType.Time:
         UpdateStatusBar ();
         break;
     default:
         throw new InvalidOperationException ("Unknown value");
     }
 }