public void GameUpdateUIElement(object obj, UpdateUIStateEventArgs args) { if (UpdateUIElement != null) { UpdateUIElement(this, args); } }
// 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"); } }