示例#1
0
        public static ForumThreadNodeInfo Load(int NodeId)
        {
            ForumThreadNodeInfo retVal = null;

            using (IDataReader reader = DBForum.GetForumThreadNode(Security.CurrentUser.TimeZoneId, NodeId))
            {
                if (reader.Read())
                {
                    retVal = new ForumThreadNodeInfo(reader);
                }
            }

            return(retVal);
        }
示例#2
0
 /// <summary>
 /// Deletes the forum thread node.
 /// </summary>
 /// <param name="info">The info.</param>
 public void DeleteForumThreadNode(ForumThreadNodeInfo info)
 {
     DeleteForumThreadNode(info.Id);
 }
示例#3
0
 /// <summary>
 /// Sets the thread node text.
 /// </summary>
 /// <param name="info">The info.</param>
 /// <param name="Text">The text.</param>
 /// <returns></returns>
 public ForumThreadNodeInfo SetThreadNodeText(ForumThreadNodeInfo info, string Text)
 {
     return(SetThreadNodeText(info.Id, Text));
 }
示例#4
0
        public static ForumThreadNodeInfo Load(int NodeId)
        {
            ForumThreadNodeInfo retVal = null;

            using(IDataReader reader = DBForum.GetForumThreadNode(Security.CurrentUser.TimeZoneId,NodeId) )
            {
                if(reader.Read())
                {
                    retVal = new ForumThreadNodeInfo(reader);
                }
            }

            return retVal;
        }
示例#5
0
 /// <summary>
 /// Sets the thread node text.
 /// </summary>
 /// <param name="info">The info.</param>
 /// <param name="Text">The text.</param>
 /// <returns></returns>
 public ForumThreadNodeInfo SetThreadNodeText(ForumThreadNodeInfo info, string Text)
 {
     return SetThreadNodeText(info.Id, Text);
 }
示例#6
0
 /// <summary>
 /// Deletes the forum thread node.
 /// </summary>
 /// <param name="info">The info.</param>
 public void DeleteForumThreadNode(ForumThreadNodeInfo info)
 {
     DeleteForumThreadNode(info.Id);
 }