void exitMenuEntrySelected(object sender, PlayerIndexEventArgs e) { if (!(this.keyboardEnabled || this.kinectEnabled)) { QuestionMenuScreen question = new QuestionMenuScreen("At least one input must be enabled.", new string[] { "Ok" }); ScreenManager.AddScreen(question, null); } else { ProgramSettings.ChangeSetting(Setting.KeyboardEnabled, this.keyboardEnabled.ToString()); ProgramSettings.ChangeSetting(Setting.KinectEnabled, this.kinectEnabled.ToString()); this.ExitScreen(); } }
void dissectionRotationMenuEntrySelected(object sender, PlayerIndexEventArgs e) { QuestionMenuScreen questionMenu = new QuestionMenuScreen("Dissection rotations should be", new string[] { DissectionStepSize.Slow.ToString(), DissectionStepSize.Medium.ToString(), DissectionStepSize.Fast.ToString(), "Back" }); questionMenu.OptionSelected += new OptionSelectedEventHandler(dissectionRotationQuestionMenuOptionSelected); ScreenManager.AddScreen(questionMenu, null); }
void ExitMenuEntrySelected(object sender, PlayerIndexEventArgs e) { QuestionMenuScreen exitQuestion = new QuestionMenuScreen("Quit Virtual Anatomy Lab?", new string[] { "Yes", "No" }); exitQuestion.OptionSelected += new OptionSelectedEventHandler(ExitQuestionOptionSelected); ScreenManager.AddScreen(exitQuestion, null); }