public void AddPostComment(ParticipationComment comment) { if (this.postComments == null) { this.postComments = new List <ParticipationComment>(); } this.postComments.Add(comment); }
private void SaveButton_Clicked(object sender, EventArgs e) { if (this.AddParticipationComment != null) { ParticipationComment comment = new ParticipationComment(this.textBox.Text, this.participation.StartDate, DateTime.Now, this.participation.ActivityDescriptor); this.AddParticipationComment.Invoke(comment); } this.layoutStack.GoBack(); }
public virtual void AddComment(ParticipationComment comment) { this.engine.PutCommentInMemory(comment); }