Пример #1
0
        protected void ViewPosts1_ReplyClick(object sender, ViewPosts.ReplyClickEventArgs eventArgs)
        {
            GroupPost groupPost = GroupPost.Fetch(eventArgs.PostID);

            if (groupPost != null)
            {
                EditPost1.Type = EditPost.eType.AddPost;
                EditPost1.Post = String.Format("[quote=\"{0}\"]{1}[/quote]\n", groupPost.Username, groupPost.Post);

                mvTopics.SetActiveView(viewStartNewTopic);
                enableMenuLinks();
                lnkAddNewPost.Enabled = false;
            }
        }
Пример #2
0
        protected void ViewPosts1_EditPostClick(object sender, ViewPosts.EditPostClickEventArgs eventArgs)
        {
            GroupPost groupPost = GroupPost.Fetch(eventArgs.PostID);

            if (groupPost != null)
            {
                EditPost1.Type = EditPost.eType.EditPost;

                EditPost1.Post = groupPost.Post;
                EditPost1.PostID = eventArgs.PostID;
                EditPost1.PageNumber = eventArgs.CurrentPage;

                mvTopics.SetActiveView(viewStartNewTopic);
                enableMenuLinks();
                lnkAddNewPost.Enabled = false;
            }
        }