broadcastreceivedeventargs.cs

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

CS
83
字号
namespace Org.InteliIM.Applications.Messenger.LeaveWord
{
	/// <summary>
	/// Provides data for the BroadcastReceived event.
	/// </summary>
	public class BroadcastReceivedEventArgs
	{
		/// <summary>
		/// Initializes a new instance of the BroadcastReceivedEventArgs class.
		/// </summary>
		/// <param name="from">sender</param>
		/// <param name="subject">subject</param>
		/// <param name="content">content</param>
		public BroadcastReceivedEventArgs
			(string from, string subject, string content)
		{
			this.From = from;
			this.Subject = subject;
			this.Content = content;
		}

		private string from;

		/// <summary>
		/// Gets or sets the sender.
		/// </summary>
		public string From
		{
			get
			{
				if (this.from == null)
					this.from = "";

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

		private string subject;

		/// <summary>
		/// Gets or sets the subject.
		/// </summary>
		public string Subject
		{
			get
			{
				if (this.subject == null)
					this.subject = "";

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

		private string content;

		/// <summary>
		/// Gets or sets the content.
		/// </summary>
		public string Content
		{
			get
			{
				if (this.content == null)
					this.content = "";

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

⌨️ 快捷键说明

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