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

📄 pgsearchsteponecontrol.cs

📁 破解的飞信源代码
💻 CS
📖 第 1 页 / 共 2 页
字号:
namespace Imps.Client.Pc
{
    using Imps.Client.Core;
    using Imps.Client.Pc.Controls;
    using Imps.Client.Pc.Properties;
    using Imps.Client.Pc.Utils;
    using Imps.Client.Resource;
    using Imps.Client.Utils;
    using System;
    using System.ComponentModel;
    using System.Drawing;
    using System.Windows.Forms;

    public class PGSearchStepOneControl : UserControl
    {
        public AsyncBizOperation _bz;
        private IFrameworkWindow _framework;
        private IContainer components;
        private GroupBox gbSearchCondition;
        private Panel pnlConditionalSearch;
        private Panel pnlContent;
        private Panel pnlIDSearch;
        private Panel pnlPicture;
        private RadioButton rbConditionalSearch;
        private RadioButton rbIDSearch;
        private Imps.Client.Pc.GroupCategory ucGroupCategory;
        private XLabel xlblCategory;
        private XLabel xlblInputGroupID;
        private XLabel xlblKeywords;
        private XLabel xlblSearchGroupMethod;
        private XPictureBox xpicLeft;
        private XTextBox xtxtGroupID;
        private XTextBox xtxtKeywords;

        public PGSearchStepOneControl(IFrameworkWindow wnd, AsyncBizOperation bz)
        {
            this._framework = wnd;
            this._bz = bz;
            this.InitializeComponent();
            this.ucGroupCategory.Unselected = true;
            this.ucGroupCategory.Categorys = this.CurrentUser.PersonalGroupManager.GroupCategory.Categorys;
            ControlHelper.SetAcceptDigitOnly(this.xtxtGroupID, true);
        }

        private bool CheckUserInput()
        {
            if (this.rbConditionalSearch.Checked)
            {
                return this.CheckUserInput_ConditionalSearch();
            }
            return this.CheckUserInput_IDSearch();
        }

        private bool CheckUserInput_ConditionalSearch()
        {
            return true;
        }

        private bool CheckUserInput_IDSearch()
        {
            string text = this.xtxtGroupID.Text.Trim();
            if (text.Length <= 0)
            {
                BalloonHelper.ShowInputErrorBallon(this.xtxtGroupID, StringTable.SearchPersonalGroup.MsgGroupIDCannotEmpty, StringTable.Options.TitleInvalidInput);
                return false;
            }
            int num = 5;
            int num2 = 10;
            if ((text.Length >= num) && (text.Length <= num2))
            {
                return true;
            }
            BalloonHelper.ShowInputErrorBallon(this.xtxtGroupID, string.Format(StringTable.SearchPersonalGroup.MsgGroupIDLength, num, num2), StringTable.Options.TitleInvalidInput);
            return false;
        }

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

        private void InitializeComponent()
        {
            this.gbSearchCondition = new GroupBox();
            this.pnlConditionalSearch = new Panel();
            this.xtxtKeywords = new XTextBox();
            this.xlblCategory = new XLabel();
            this.xlblKeywords = new XLabel();
            this.pnlIDSearch = new Panel();
            this.xtxtGroupID = new XTextBox();
            this.xlblInputGroupID = new XLabel();
            this.rbIDSearch = new RadioButton();
            this.rbConditionalSearch = new RadioButton();
            this.xlblSearchGroupMethod = new XLabel();
            this.xpicLeft = new XPictureBox();
            this.pnlPicture = new Panel();
            this.pnlContent = new Panel();
            this.ucGroupCategory = new Imps.Client.Pc.GroupCategory();
            this.gbSearchCondition.SuspendLayout();
            this.pnlConditionalSearch.SuspendLayout();
            this.pnlIDSearch.SuspendLayout();
            this.pnlPicture.SuspendLayout();
            this.pnlContent.SuspendLayout();
            base.SuspendLayout();
            this.gbSearchCondition.Controls.Add(this.pnlConditionalSearch);
            this.gbSearchCondition.Controls.Add(this.pnlIDSearch);
            this.gbSearchCondition.Location = new System.Drawing.Point(0x12, 0x6a);
            this.gbSearchCondition.Name = "gbSearchCondition";
            this.gbSearchCondition.Size = new Size(0x108, 0x9b);
            this.gbSearchCondition.TabIndex = 4;
            this.gbSearchCondition.TabStop = false;
            this.gbSearchCondition.Text = "搜索条件";
            this.pnlConditionalSearch.BackColor = Color.Transparent;
            this.pnlConditionalSearch.Controls.Add(this.xtxtKeywords);
            this.pnlConditionalSearch.Controls.Add(this.xlblCategory);
            this.pnlConditionalSearch.Controls.Add(this.xlblKeywords);
            this.pnlConditionalSearch.Controls.Add(this.ucGroupCategory);
            this.pnlConditionalSearch.Dock = DockStyle.Fill;
            this.pnlConditionalSearch.Location = new System.Drawing.Point(3, 0x10);
            this.pnlConditionalSearch.Name = "pnlConditionalSearch";
            this.pnlConditionalSearch.Size = new Size(0x102, 0x88);
            this.pnlConditionalSearch.TabIndex = 3;
            this.xtxtKeywords.BackColor = Color.White;
            this.xtxtKeywords.BorderStyle = BorderStyle.FixedSingle;
            this.xtxtKeywords.EmptyTextTip = "";
            this.xtxtKeywords.EmptyTextTipColor = Color.DarkGray;
            this.xtxtKeywords.Location = new System.Drawing.Point(0x16, 0x23);
            this.xtxtKeywords.MaxLength = 0x40;
            this.xtxtKeywords.Name = "xtxtKeywords";
            this.xtxtKeywords.Size = new Size(0xcb, 20);
            this.xtxtKeywords.TabIndex = 1;
            this.xlblCategory.set_AutoSize(true);
            this.xlblCategory.BorderColor = Color.Empty;
            this.xlblCategory.ButtonBorderStyle = ButtonBorderStyle.None;
            this.xlblCategory.Location = new System.Drawing.Point(0x13, 0x43);
            this.xlblCategory.Name = "xlblCategory";
            this.xlblCategory.Size = new Size(0x2b, 13);
            this.xlblCategory.TabIndex = 7;
            this.xlblCategory.Text = "分类:";
            this.xlblKeywords.set_AutoSize(true);
            this.xlblKeywords.BorderColor = Color.Empty;
            this.xlblKeywords.ButtonBorderStyle = ButtonBorderStyle.None;
            this.xlblKeywords.Location = new System.Drawing.Point(0x13, 15);
            this.xlblKeywords.Name = "xlblKeywords";
            this.xlblKeywords.Size = new Size(0x37, 13);
            this.xlblKeywords.TabIndex = 6;
            this.xlblKeywords.Text = "关键字:";
            this.pnlIDSearch.Controls.Add(this.xtxtGroupID);
            this.pnlIDSearch.Controls.Add(this.xlblInputGroupID);
            this.pnlIDSearch.Dock = DockStyle.Fill;
            this.pnlIDSearch.Location = new System.Drawing.Point(3, 0x10);
            this.pnlIDSearch.Name = "pnlIDSearch";
            this.pnlIDSearch.Size = new Size(0x102, 0x88);
            this.pnlIDSearch.TabIndex = 1;
            this.xtxtGroupID.BackColor = Color.White;
            this.xtxtGroupID.BorderStyle = BorderStyle.FixedSingle;
            this.xtxtGroupID.EmptyTextTip = "";
            this.xtxtGroupID.EmptyTextTipColor = Color.DarkGray;
            this.xtxtGroupID.Location = new System.Drawing.Point(0x16, 0x2c);
            this.xtxtGroupID.Name = "xtxtGroupID";
            this.xtxtGroupID.Size = new Size(0xd7, 20);
            this.xtxtGroupID.TabIndex = 1;
            this.xlblInputGroupID.set_AutoSize(true);
            this.xlblInputGroupID.BorderColor = Color.Empty;
            this.xlblInputGroupID.ButtonBorderStyle = ButtonBorderStyle.None;
            this.xlblInputGroupID.Location = new System.Drawing.Point(0x13, 15);
            this.xlblInputGroupID.Name = "xlblInputGroupID";
            this.xlblInputGroupID.Size = new Size(0x7f, 13);
            this.xlblInputGroupID.TabIndex = 0;
            this.xlblInputGroupID.Text = "请输入要查找的群号:";
            this.rbIDSearch.set_AutoSize(true);
            this.rbIDSearch.Location = new System.Drawing.Point(0x29, 0x47);

⌨️ 快捷键说明

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