leavewordreceivedeventargs.cs

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

CS
85
字号
using System;
using Org.InteliIM.Applications.Messenger.Conversations;

namespace Org.InteliIM.Applications.Messenger.LeaveWord
{
	/// <summary>
	/// Provides data for the LeaveWordReceived event.
	/// </summary>
	public class LeaveWordReceivedEventArgs : EventArgs
	{
		/// <summary>
		/// Initializes a new instance of the LeaveWordReceivedEventArgs class.
		/// </summary>
		/// <param name="from"></param>
		/// <param name="to"></param>
		/// <param name="leaveWord"></param>
        public LeaveWordReceivedEventArgs(string from, string to, ChatContent leaveWord)
        {
			this.From = from;
			this.To = to;
			this.ChatMessage = leaveWord;
		}

		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 to;

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

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

        private ChatContent chatMessage;

        /// <summary>
		/// Gets or sets the chat message.
		/// </summary>
        public ChatContent ChatMessage
        {
			get
			{
				if (this.chatMessage == null)
                    this.chatMessage = new ChatContent();

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

⌨️ 快捷键说明

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