chateditdropeventargs.cs

来自「破解的飞信源代码」· CS 代码 · 共 65 行

CS
65
字号
namespace Imps.Client.Pc.BizControls
{
    using Imps.Client.Core;
    using System;

    public class ChatEditDropEventArgs : EventArgs
    {
        private Imps.Client.Core.Contact _contact;
        private ChatEditDropType _eventType;
        private string[] _files;
        private string _text;

        public ChatEditDropEventArgs(string[] files)
        {
            this._files = files;
            this._eventType = ChatEditDropType.FILE;
        }

        public ChatEditDropEventArgs(Imps.Client.Core.Contact contact)
        {
            this._contact = contact;
            this._eventType = ChatEditDropType.Contact;
        }

        public ChatEditDropEventArgs(string text)
        {
            this._text = text;
            this._eventType = ChatEditDropType.TEXT;
        }

        public Imps.Client.Core.Contact Contact
        {
            get
            {
                return this._contact;
            }
        }

        public ChatEditDropType EventType
        {
            get
            {
                return this._eventType;
            }
        }

        public string[] Files
        {
            get
            {
                return this._files;
            }
        }

        public string Text
        {
            get
            {
                return this._text;
            }
        }
    }
}

⌨️ 快捷键说明

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