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

📄 pgconversationrightcontrol.cs

📁 破解的飞信源代码
💻 CS
字号:
namespace Imps.Client.Pc
{
    using Imps.Client.Core;
    using Imps.Client.Pc.Controls;
    using Imps.Client.Resource;
    using Imps.Client.Utils;
    using System;
    using System.ComponentModel;
    using System.Drawing;
    using System.Windows.Forms;

    public class PGConversationRightControl : UserControl
    {
        private IFrameworkWindow _framework;
        private PersonalGroup _group;
        private IContainer components;
        public string emptyText = "查找群成员...";
        private PersonalGroupListControl list;
        private Panel panel1;
        private Panel pnlList;
        private BListControlToolbar toolbarSearch;
        private XTextBox txtSearch;

        public PGConversationRightControl(IFrameworkWindow framework, PersonalGroup group)
        {
            this.InitializeComponent();
            this._framework = framework;
            this._group = group;
            this.txtSearch = this.toolbarSearch.SearchTextBox;
            this.txtSearch.KeyDown += new KeyEventHandler(this.txtSearch_KeyDown);
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void InitializeComponent()
        {
            ComponentResourceManager manager = new ComponentResourceManager(typeof(PGConversationRightControl));
            this.pnlList = new Panel();
            this.panel1 = new Panel();
            this.toolbarSearch = new BListControlToolbar();
            this.pnlList.SuspendLayout();
            this.panel1.SuspendLayout();
            base.SuspendLayout();
            this.pnlList.BackColor = Color.White;
            this.pnlList.Dock = DockStyle.Fill;
            this.pnlList.Location = new System.Drawing.Point(1, 0x1d);
            this.pnlList.Name = "pnlList";
            this.pnlList.set_Padding(new Padding(0, 0, 0, 0));
            this.pnlList.Size = new Size(180, 310);
            this.pnlList.TabIndex = 2;
            this.panel1.BackColor = Color.FromArgb(0xe1, 230, 0xec);
            this.panel1.Controls.Add(this.toolbarSearch);
            this.panel1.Dock = DockStyle.Top;
            this.panel1.Location = new System.Drawing.Point(1, 1);
            this.panel1.Name = "panel1";
            this.panel1.set_Padding(new Padding(4));
            this.panel1.Size = new Size(180, 0x1c);
            this.panel1.TabIndex = 3;
            this.toolbarSearch.BackColor = Color.FromArgb(0xca, 0xd4, 0xde);
            this.toolbarSearch.BackgroundImage = (Image) manager.GetObject("toolbarSearch.BackgroundImage");
            this.toolbarSearch.Dock = DockStyle.Top;
            this.toolbarSearch.DropDownMenu = null;
            this.toolbarSearch.Location = new System.Drawing.Point(4, 4);
            this.toolbarSearch.Name = "toolbarSearch";
            this.toolbarSearch.ShowDisplayModeBar = false;
            this.toolbarSearch.SimpleMode = true;
            this.toolbarSearch.Size = new Size(0xac, 0x15);
            this.toolbarSearch.TabIndex = 2;
            base.set_AutoScaleDimensions(new SizeF(6f, 12f));
            base.set_AutoScaleMode(1);
            this.BackColor = Color.FromArgb(0xa4, 170, 220);
            base.Controls.Add(this.pnlList);
            base.Controls.Add(this.panel1);
            base.Name = "PGConversationRightControl";
            base.set_Padding(new Padding(1));
            base.Size = new Size(0xb6, 340);
            this.pnlList.ResumeLayout(false);
            this.pnlList.PerformLayout();
            this.panel1.ResumeLayout(false);
            base.ResumeLayout(false);
        }

        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
            this.list = new PersonalGroupListControl(this._framework, this._group);
            this.list.Dock = DockStyle.Fill;
            this.pnlList.Controls.Add(this.list);
            this.toolbarSearch.TipText = string.Format(StringTable.Contact.GroupContactSearchTip, AppDictionary.ShortEnglishName);
            this.txtSearch.MaxLength = 0x40;
            this.txtSearch.EmptyTextTip = this.emptyText;
            this.txtSearch.TextChanged += new EventHandler(this.txtSearch_TextChanged);
        }

        private void txtSearch_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Escape)
            {
                this.txtSearch.Text = string.Empty;
            }
        }

        private void txtSearch_TextChanged(object sender, EventArgs e)
        {
            try
            {
                this.list.SearchCurrentGroup(this.txtSearch.Text);
            }
            catch (Exception exception)
            {
                ClientLogger.WriteException(exception);
            }
        }
    }
}

⌨️ 快捷键说明

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