participantjoinandleftmessage.cs
来自「破解的飞信源代码」· CS 代码 · 共 35 行
CS
35 行
namespace Imps.Client.Core
{
using Imps.Client.Resource;
using Imps.Utils;
using System;
public class ParticipantJoinAndLeftMessage : Message
{
private bool _isLeave;
public ParticipantJoinAndLeftMessage(Dialog dialog, string name, bool isLeave) : base(dialog, null, true)
{
this._isLeave = isLeave;
name = StringHelper.EncodString(name);
if (isLeave)
{
base.Content = string.Format(StringTable.Conversation.MsgParticipantLeft, name);
}
else
{
base.Content = string.Format(StringTable.Conversation.MsgParticipantJoin, name);
}
}
public bool IsLeave
{
get
{
return this._isLeave;
}
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?