openconversationreceivedeventargs.cs

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

CS
56
字号
using System;

namespace Org.InteliIM.Activities.Conversations
{
	/// <summary>
	/// 为 OpenConversationReceived 事件提供数据
	/// </summary>
	public class OpenConversationReceivedEventArgs
		: EventArgs
	{
		private string from;

		/// <summary>
		/// 发送者用户名
		/// </summary>
		public string From
		{
			get
			{
				return this.from;
			}
			set
			{
				this.from = value;
			}
		}

		private Conversation conversation;

		/// <summary>
		/// 相关联的谈话对象编号
		/// </summary>
		public Conversation Conversation
		{
			get
			{
				return this.conversation;
			}
			set
			{
				this.conversation = value;
			}
		}

		/// <summary>
		/// 构造函数
		/// </summary>
		/// <param name="from"></param>
		/// <param name="conversation"></param>
		public OpenConversationReceivedEventArgs(string from, Conversation conversation)
		{
			this.From = from;
			this.Conversation = conversation;
		}
	}
}

⌨️ 快捷键说明

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