moderatedforum.cs

来自「本系统是在asp版《在线文件管理器》的基础上设计制作」· CS 代码 · 共 68 行

CS
68
字号
//------------------------------------------------------------------------------
// <copyright company="Telligent Systems">
//     Copyright (c) Telligent Systems Corporation.  All rights reserved.
// </copyright> 
//------------------------------------------------------------------------------

using System;
using CommunityServer.Components;

namespace CommunityServer.Discussions.Components {
    /// <summary>
    /// Summary description for ModeratedForum.
    /// </summary>
    public class ModeratedForum : Forum {

        String username = "";
        bool _emailNotification;
        PostSet posts = null;
        int totalPostsAwaitingModeration = 0;


        public String Username {
            get { return username;}
            set { username = value; }			
        }

        public bool EmailNotification {
            get { return _emailNotification; }
            set { _emailNotification = value; }
        }

        // *********************************************************************
        //  PostsAwaitingModeration
        //
        /// <summary>
        /// A collection of posts for this forum that require moderation.
        /// </summary>
        /// 
        // ********************************************************************/ 
        public PostSet PostsAwaitingModeration {
            get {
                return posts;
            }
            set {
                posts = value;
            }
        }

        // *********************************************************************
        //  TotalPostsAwaitingModeration
        //
        /// <summary>
        /// A collection of posts for this forum that require moderation.
        /// </summary>
        /// 
        // ********************************************************************/ 
        public int TotalPostsAwaitingModeration {
            get {
                return totalPostsAwaitingModeration;
            }
            set {
                totalPostsAwaitingModeration = value;
            }
        }

    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?