/*----------------- Challenge Tab ------------------------------------*/ #region Challenge public void clearAllForChallenge() { ChallengeDescriptionBox.Clear(); ActivityForChallengeDescriptionBox.Clear(); ChallengesListbox.Items.Clear(); ActivitiesForChallengeListbox.Items.Clear(); }
/// <summary> /// Clears the ActivitesChallengesListbox and each activity found in the challenges lists name is added to the ActivitiesForChallengeListBox. /// </summary> /// <param name="challenges"></param> public void UpdateActivityForChallengeList(List <Activity> challenges) { ActivitiesForChallengeListbox.Items.Clear(); foreach (Activity s in challenges) { ActivitiesForChallengeListbox.Items.Add(s.Name); } ActivityForChallengeDescriptionBox.Clear(); }
/// <summary> /// Clears the description of an activity for a challenge in ActivityForChallengeDescriptionBox and puts a new description in it. /// </summary> /// <param name="description"></param> public void UpdateActivityForChallengeInfo(string description) { ActivityForChallengeDescriptionBox.Clear(); ActivityForChallengeDescriptionBox.AppendText(description); }