private void Form1_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { ResultsDisplayHelper.DisplayGroupCompetitionResult(); } }
private static void OnDisplayResult(string rankingsType) { if (rankingsType.Contains("hide")) { //System.Windows.Forms.MessageBox.Show("HIDE RESULT"); ResultsDisplayHelper.HideResult(); return; } if (rankingsType.Contains("group-competition")) { ResultsDisplayHelper.DisplayGroupCompetitionResult(); } else if (rankingsType.Contains("group-challenge")) { ResultsDisplayHelper.DisplayGroupChallengeResult(); } else if (rankingsType.Contains("individual")) { if (rankingsType.Contains("improvement")) { ResultsDisplayHelper.DisplayBestImprovements(); } else if (rankingsType.Contains("top-students")) { ResultsDisplayHelper.DisplayBestStudents(); } } }