Example #1
0
        private void btnSend_Click(object sender, EventArgs e)
        {
            BlogCommentOperation arg = new BlogCommentOperation();

            arg.BlogEntryId             = blogEntry.Id;
            arg.BlogComment             = new BlogCommentDTO();
            arg.BlogComment.Comment     = txtComment.Text;
            arg.BlogComment.CommentType = ContentType.Text;
            arg.BlogComment.Profile     = UserContext.CurrentProfile;

            ParentWindow.TasksManager.RunAsynchronousOperation(delegate
            {
                ServiceManager.BlogCommentOperation(arg);
                ParentWindow.SynchronizationContext.Send(delegate
                {
                    Fill(blogEntry);
                    txtComment.Text = string.Empty;
                }, null);
            }, asyncOperationStateChange);
        }