⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 headicon.cs

📁 破解的飞信源代码
💻 CS
字号:
namespace Imps.Client.Pc.BizControls
{
    using System;
    using System.Drawing;

    public class headicon : listbox_widget.item_type
    {
        private object m_context;
        private Image m_icon;
        private string m_iconpath;
        private string m_prompt;
        private string m_text;

        public headicon(Image icon, string text)
        {
            this.m_text = "";
            this.m_prompt = "";
            this.m_iconpath = "";
            this.m_icon = icon;
            this.m_text = (text != null) ? text : "";
        }

        public headicon(string iconpath, string text)
        {
            this.m_text = "";
            this.m_prompt = "";
            this.m_iconpath = "";
            this.m_iconpath = iconpath;
            try
            {
                this.m_icon = new Bitmap(iconpath);
                this.m_iconpath = iconpath;
            }
            catch (ArgumentException)
            {
                this.m_iconpath = "";
            }
            this.m_text = (text != null) ? text : "";
        }

        public headicon(Image icon, string text, object context)
        {
            this.m_text = "";
            this.m_prompt = "";
            this.m_iconpath = "";
            this.m_icon = icon;
            this.m_text = (text != null) ? text : "";
            this.m_context = context;
        }

        public headicon(Image icon, string text, string prompt)
        {
            this.m_text = "";
            this.m_prompt = "";
            this.m_iconpath = "";
            this.m_icon = icon;
            this.m_text = (text != null) ? text : "";
            this.m_prompt = (prompt != null) ? prompt : "";
        }

        public headicon(string iconpath, string text, object context)
        {
            this.m_text = "";
            this.m_prompt = "";
            this.m_iconpath = "";
            this.m_iconpath = iconpath;
            try
            {
                this.m_icon = new Bitmap(iconpath);
                this.m_iconpath = iconpath;
            }
            catch (ArgumentException)
            {
                this.m_iconpath = "";
            }
            this.m_text = (text != null) ? text : "";
            this.m_context = context;
        }

        public headicon(string iconpath, string text, string prompt)
        {
            this.m_text = "";
            this.m_prompt = "";
            this.m_iconpath = "";
            try
            {
                this.m_icon = new Bitmap(iconpath);
                this.m_iconpath = iconpath;
            }
            catch (ArgumentException)
            {
                this.m_iconpath = "";
            }
            this.m_text = (text != null) ? text : "";
            this.m_prompt = (prompt != null) ? prompt : "";
        }

        public headicon(Image icon, string text, string prompt, object context)
        {
            this.m_text = "";
            this.m_prompt = "";
            this.m_iconpath = "";
            this.m_icon = icon;
            this.m_text = (text != null) ? text : "";
            this.m_prompt = (prompt != null) ? prompt : "";
            this.context = context;
        }

        public headicon(string iconpath, string text, string prompt, object context)
        {
            this.m_text = "";
            this.m_prompt = "";
            this.m_iconpath = "";
            try
            {
                this.m_icon = new Bitmap(iconpath);
                this.m_iconpath = iconpath;
            }
            catch (ArgumentException)
            {
                this.m_iconpath = "";
            }
            this.m_text = (text != null) ? text : "";
            this.m_prompt = (prompt != null) ? prompt : "";
            this.m_context = context;
        }

        private void on_property_changed()
        {
            if (base.owner != null)
            {
                IntPtr handle = base.owner.Handle;
            }
            else
            {
                return;
            }
            int index = 0;
            foreach (object obj2 in base.owner.Items)
            {
                if (obj2.Equals(this))
                {
                    base.owner.Invalidate(base.owner.GetItemRectangle(index));
                }
                index++;
            }
        }

        public object context
        {
            get
            {
                return this.m_context;
            }
            set
            {
                this.m_context = value;
                this.on_property_changed();
            }
        }

        public Image icon
        {
            get
            {
                return this.m_icon;
            }
            set
            {
                this.m_icon = value;
                this.on_property_changed();
            }
        }

        public string iconpath
        {
            get
            {
                return this.m_iconpath;
            }
            set
            {
                if (value != this.m_iconpath)
                {
                    try
                    {
                        this.m_iconpath = value;
                        this.on_property_changed();
                    }
                    catch (ArgumentException)
                    {
                        this.m_iconpath = "";
                    }
                }
            }
        }

        public string prompt
        {
            get
            {
                return this.m_prompt;
            }
            set
            {
                this.m_prompt = (value != null) ? value : "";
            }
        }

        public string text
        {
            get
            {
                return this.m_text;
            }
            set
            {
                this.m_text = (value != null) ? value : "";
                this.on_property_changed();
            }
        }
    }
}

⌨️ 快捷键说明

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