コード例 #1
0
 private void Form1_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         ResultsDisplayHelper.DisplayGroupCompetitionResult();
     }
 }
コード例 #2
0
        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();
                }
            }
        }