/*----------------- Challenge Tab ------------------------------------*/ #region Challenge public void clearAllForChallenge() { ChallengeDescriptionBox.Clear(); ActivityForChallengeDescriptionBox.Clear(); ChallengesListbox.Items.Clear(); ActivitiesForChallengeListbox.Items.Clear(); }
/// <summary> /// Notifys the presenter that the CancelButton for challenge has been pressed. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void ChallengesCancelButton_Click(object sender, EventArgs e) { HideActivitiesForChallenge(); presenter.DropChallenge(); ChallengesListbox.ClearSelected(); ShowChallengesDisplayed(); ActivitiesForChallengeListbox.ClearSelected(); ChallengeDescriptionBox.Clear(); }
/// <summary> /// Clear the description in ChallengeDescriptionBox and puts the new description in it. /// </summary> /// <param name="description"></param> public void updateChallengeInfo(string description) { ChallengeDescriptionBox.Clear(); ChallengeDescriptionBox.AppendText(description); }