/// <summary> /// Called when a user selects an activity in the GUI. /// Loads the description of the activity in the GUI. /// Potential TO-DO: Add exception handling. /// </summary> /// <param name="activityName"></param> What activity has been pressed public void activityPressed(string activityName) { currentActivityHover = activityName; String description = connectToDatabase.GetActivityDescriptionQuery(activityName); view.updateActivityInfo(description); }
/// <summary> /// Get the description of the Activity given as param. /// </summary> /// <param name="activityName"></param>Name of Activity. /// <returns></returns>The description of the given Activity public String GetActivityDescriptionQuery(String activityName) { return(connectToDatabase.GetActivityDescriptionQuery(activityName)); }