public void HandleInput(object sender, TextInputEventArgs e) { switch (mMenuState) { case MainMenuState.Main: mStart.HandleInput(sender, e); break; case MainMenuState.Host: mHost.HandleInput(sender, e); break; case MainMenuState.Connect: mConnect.HandleInput(sender, e); break; case MainMenuState.Options: break; case MainMenuState.Waiting: break; case MainMenuState.Exit: break; default: break; } }