void AnswerSelected(object sender, SelectedIndexEventArgs e)
 {
     MenuEntry menuEntry = (MenuEntry)sender;
     if (menuEntry.Text == Table.Rows[RowIndex].ItemArray[2].ToString())
     {
         MessageBoxScreen passMsgBoxScreen = new MessageBoxScreen("Congratz!", false);
         Level.Score += 100;
         passMsgBoxScreen.Accepted += ConfirmMessageBox;
         ScreenManager.AddScreen(passMsgBoxScreen);
     }
     else
     {
         MessageBoxScreen failMsgBoxScreen = new MessageBoxScreen("Sorry, the correct answer was: \n" + Table.Rows[RowIndex].ItemArray[2].ToString(), false);
         failMsgBoxScreen.Accepted += ConfirmMessageBox;
         ScreenManager.AddScreen(failMsgBoxScreen);
     }
     ExitScreen();
 }
Example #2
0
 void ExitMenuEntrySelected(object sender, SelectedIndexEventArgs e)
 {
     this.OnCancel();
 }
Example #3
0
 void TopicMenuEntrySelected(object sender, SelectedIndexEventArgs e)
 {
     ScreenManager.AddScreen(new GamePlayScreen(e.Index));
     //LoadingScreen.Load(ScreenManager, false, new GamePlayScreen(e.Index));
 }
Example #4
0
 protected void OnCancel(object sender, SelectedIndexEventArgs e)
 {
     OnCancel();
 }