emoticon.cs

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

CS
97
字号
namespace Imps.Client.Resource
{
    using Imps.Utils;
    using System;
    using System.Drawing;

    public class Emoticon
    {
        private Imps.Utils.AmigoImage _image;
        private string _key;
        private string _name;
        private string _srcKey;
        private System.Drawing.Image _staticImage;

        public Emoticon(string key, System.Drawing.Image staticImage, System.Drawing.Image dynamicImage, string name, int circles)
        {
            this._key = key;
            this._image = new Imps.Utils.AmigoImage(dynamicImage, circles, staticImage);
            this._name = name;
            this._staticImage = staticImage;
        }

        public Emoticon(string key, System.Drawing.Image staticImage, System.Drawing.Image dynamicImage, string name, int circles, bool isImgSpeed1ST)
        {
            this._key = key;
            this._image = new Imps.Utils.AmigoImage(dynamicImage, circles, staticImage, isImgSpeed1ST);
            this._name = name;
            this._staticImage = staticImage;
        }

        public Imps.Utils.AmigoImage AmigoImage
        {
            get
            {
                return this._image;
            }
        }

        public string Description
        {
            get
            {
                return string.Format("{0}  {1}", this._name, this.Key);
            }
        }

        public System.Drawing.Image Image
        {
            get
            {
                return this._image.CurrentImage;
            }
        }

        public string Key
        {
            get
            {
                return this._key;
            }
        }

        public string Name
        {
            get
            {
                return this._name;
            }
        }

        public string SrcKey
        {
            get
            {
                return this._srcKey;
            }
            set
            {
                this._srcKey = value;
            }
        }

        public System.Drawing.Image StaticImage
        {
            get
            {
                return this._staticImage;
            }
            set
            {
                this._staticImage = value;
            }
        }
    }
}

⌨️ 快捷键说明

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