Ejemplo n.º 1
0
 /// <summary>
 /// Called when a user selects an challenge in the GUI.
 /// Loads the description of the challenge in the GUI.
 /// Potential TO-DO: Add exception handling.
 /// </summary>
 /// <param name="ChallengeName"></param> What activity has been pressed
 public void ChallengePressed(string challengeName)
 {
     if (currentChallengeHover != challengeName)
     {
         currentChallengeHover = challengeName;
         String description = connectToDatabase.GetChallengeDescriptionQuery(challengeName);
         view.updateChallengeInfo(description);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Get the description of the Challenge given as param.
 /// </summary>
 /// <param name="challengeName"></param>Name of Challenge
 /// <returns></returns>The description of the given Challenge
 public String GetChallengeDescriptionQuery(String challengeName)
 {
     return(connectToDatabase.GetChallengeDescriptionQuery(challengeName));
 }