bbsentry.cs

来自「这个版本(InteliIM Open Kernel Release 2)是目前最」· CS 代码 · 共 72 行

CS
72
字号
#region Using Directives

using System;
using System.Collections.Generic;

#endregion

namespace Org.InteliIM.Applications.MiniTools.BBS
{
	/// <summary>
	/// Represents a BBS entry.
	/// </summary>
	public class BBSEntry: BBSEntryBase
	{
		/// <summary>
		/// Initializes a new instance of the BBSEntry class.
		/// </summary>
		public BBSEntry()
		{
		}
		
		private BBSEntryPriority priority = BBSEntryPriority.Normal;
		
		/// <summary>
		/// Gets or sets the priority.
		/// </summary>
		public BBSEntryPriority Priority
		{
			get
			{
				return this.priority;
			}
			set
			{
				this.priority = value;
			}
		}
		
		private Collection<BBSRemark> remarks;
		
		/// <summary>
		/// Gets or sets the remarks collection.
		/// </summary>
		public Collection<BBSRemark> Remarks
		{
			get
			{
				if(this.remarks == null)
					this.remarks = new Collection<BBSRemark>();
				
				return this.remarks;
			}
			set
			{
				this.remarks = value;
			}
		}
		
		/// <summary>
		/// Gets or sets the associated remarks count.
		/// </summary>
		public long RemarksCount
		{
			get
			{
				return this.Remarks.Count;
			}
		}
    }
}

⌨️ 快捷键说明

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