Esempio n. 1
0
 private void gpgPictureBoxEdit_Click(object sender, EventArgs e)
 {
     DlgPostComment comment = new DlgPostComment(this.Comment.CommentText);
     if ((comment.ShowDialog() == DialogResult.OK) && new QuazalQuery("UpdateContentComment", new object[] { comment.Comment, this.Comment.ID }).ExecuteNonQuery())
     {
         this.Comment.LastEditDate = DateTime.Now;
         this.Comment.CommentText = comment.Comment;
         ContentComment comment1 = this.Comment;
         comment1.EditCount++;
         this.Comment.LastEditByID = User.Current.ID;
         this.Comment.LastEditByName = User.Current.Name;
         this.BindToComment();
         if (this.UpdateComment != null)
         {
             this.UpdateComment(this.Comment, EventArgs.Empty);
         }
     }
 }
 private void PostCommentClick(object sender, EventArgs e)
 {
     DlgPostComment comment = new DlgPostComment();
     if ((comment.ShowDialog() == DialogResult.OK) && DataAccess.ExecuteQuery("PostContentComment", new object[] { this.Content.ID, comment.Comment }))
     {
         this.CommentCount++;
         this.UpdateComments();
     }
 }
Esempio n. 3
0
 private void skinButtonPostComment_Click(object sender, EventArgs e)
 {
     DlgPostComment comment = new DlgPostComment();
     if ((comment.ShowDialog() == DialogResult.OK) && DataAccess.ExecuteQuery("PostReplayComment", new object[] { this.Replay.ID, comment.Comment }))
     {
         this.UpdateComments();
     }
 }