meeting.cs

来自「该源代码用 C# 写成」· CS 代码 · 共 160 行

CS
160
字号
using System;
using System.Collections.Specialized;

namespace Org.InteliIM
{
	/// <summary>
	/// 会议
	/// </summary>
	public class Meeting
	{
		private string id;
		
		/// <summary>
		/// 编号
		/// </summary>
		public string Id
		{
			get
			{
				if(this.id == null)
					this.id = "";

				return this.id;
			}
			set
			{
				this.id = value;
			}
		}
		
		private DateTime date = DateTime.Now;
		
		/// <summary>
		/// 召开时间
		/// </summary>
		public DateTime Date
		{
			get
			{
				return this.date;
			}
			set
			{
				this.date = value;
			}
		}
		
		private string subject;
		
		/// <summary>
		/// 会议主题
		/// </summary>
		public string Subject
		{
			get
			{
				if(this.subject == null)
					this.subject = "";

				return this.subject;
			}
			set
			{
				this.subject = value;
			}
		}

		private string address;
		
		/// <summary>
		/// 召开地点
		/// </summary>
		public string Address
		{
			get
			{
				if(this.address == null)
					this.address = "";

				return this.address;
			}
			set
			{
				this.address = value;
			}
		}
		
		private StringCollection participantIds;
		
		/// <summary>
		/// 参加人员用户名集合
		/// </summary>
		public StringCollection ParticipantIds
		{
			get
			{
				if(this.participantIds == null)
					this.participantIds = new StringCollection();

				return this.participantIds;
			}
			set
			{
				this.participantIds = value;
			}
		}
		
		/// <summary>
		/// 参加人员数
		/// </summary>
		public int ParticipantsCount
		{
			get
			{
				return this.ParticipantIds.Count;
			}
		}
		
		private string chairmanId;
		
		/// <summary>
		/// 主席用户名
		/// </summary>
		public string ChairmanId
		{
			get
			{
				if(this.chairmanId == null)
					this.chairmanId = "";

				return this.chairmanId;
			}
			set
			{
				this.chairmanId = value;
			}
		}
		
		private string description;
		
		/// <summary>
		/// 描述
		/// </summary>
		public string Description
		{
			get
			{
				if(this.description == null)
					this.description = "";

				return this.description;
			}
			set
			{
				this.description = value;
			}
		}
	}
}

⌨️ 快捷键说明

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