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

📄 pgsearchsteponecontrol.cs

📁 破解的飞信源代码
💻 CS
📖 第 1 页 / 共 2 页
字号:
            this.rbIDSearch.Name = "rbIDSearch";
            this.rbIDSearch.Size = new Size(0x49, 0x11);
            this.rbIDSearch.TabIndex = 0;
            this.rbIDSearch.TabStop = true;
            this.rbIDSearch.Text = "精确搜索";
            this.rbIDSearch.set_UseVisualStyleBackColor(true);
            this.rbIDSearch.CheckedChanged += new EventHandler(this.rbSearchMethod_CheckedChanged);
            this.rbConditionalSearch.set_AutoSize(true);
            this.rbConditionalSearch.Checked = true;
            this.rbConditionalSearch.Location = new System.Drawing.Point(0x29, 0x2f);
            this.rbConditionalSearch.Name = "rbConditionalSearch";
            this.rbConditionalSearch.Size = new Size(0x49, 0x11);
            this.rbConditionalSearch.TabIndex = 0;
            this.rbConditionalSearch.TabStop = true;
            this.rbConditionalSearch.Text = "分类搜索";
            this.rbConditionalSearch.set_UseVisualStyleBackColor(true);
            this.rbConditionalSearch.CheckedChanged += new EventHandler(this.rbSearchMethod_CheckedChanged);
            this.xlblSearchGroupMethod.set_AutoSize(true);
            this.xlblSearchGroupMethod.BorderColor = Color.Empty;
            this.xlblSearchGroupMethod.ButtonBorderStyle = ButtonBorderStyle.None;
            this.xlblSearchGroupMethod.Location = new System.Drawing.Point(15, 0x15);
            this.xlblSearchGroupMethod.Name = "xlblSearchGroupMethod";
            this.xlblSearchGroupMethod.Size = new Size(0xbb, 13);
            this.xlblSearchGroupMethod.TabIndex = 4;
            this.xlblSearchGroupMethod.Text = "您可以通过以下方式搜索添加群:";
            this.xpicLeft.BorderColor = Color.Black;
            this.xpicLeft.BorderStyle = BorderStyle.None;
            this.xpicLeft.ButtonBorderStyle = ButtonBorderStyle.Solid;
            this.xpicLeft.Dock = DockStyle.Fill;
            this.xpicLeft.Image = Resources.PGSearch;
            this.xpicLeft.Location = new System.Drawing.Point(0, 0);
            this.xpicLeft.Name = "xpicLeft";
            this.xpicLeft.Size = new Size(150, 0x13e);
            this.xpicLeft.SizeMode = PictureBoxSizeMode.StretchImage;
            this.xpicLeft.TabIndex = 5;
            this.xpicLeft.Text = "xPictureBox1";
            this.pnlPicture.Controls.Add(this.xpicLeft);
            this.pnlPicture.Dock = DockStyle.Left;
            this.pnlPicture.Location = new System.Drawing.Point(0, 0);
            this.pnlPicture.Name = "pnlPicture";
            this.pnlPicture.Size = new Size(150, 0x13e);
            this.pnlPicture.TabIndex = 6;
            this.pnlContent.Controls.Add(this.xlblSearchGroupMethod);
            this.pnlContent.Controls.Add(this.rbConditionalSearch);
            this.pnlContent.Controls.Add(this.rbIDSearch);
            this.pnlContent.Controls.Add(this.gbSearchCondition);
            this.pnlContent.Dock = DockStyle.Right;
            this.pnlContent.Location = new System.Drawing.Point(0x9c, 0);
            this.pnlContent.Name = "pnlContent";
            this.pnlContent.Size = new Size(0x149, 0x13e);
            this.pnlContent.TabIndex = 7;
            this.ucGroupCategory.set_AutoSize(true);
            this.ucGroupCategory.BackColor = Color.Transparent;
            this.ucGroupCategory.Location = new System.Drawing.Point(0x16, 0x53);
            this.ucGroupCategory.Name = "ucGroupCategory";
            this.ucGroupCategory.Size = new Size(0xcb, 0x1d);
            this.ucGroupCategory.TabIndex = 2;
            this.ucGroupCategory.Value = "-1";
            base.set_AutoScaleDimensions(new SizeF(6f, 13f));
            base.set_AutoScaleMode(1);
            this.BackColor = Color.Transparent;
            base.Controls.Add(this.pnlContent);
            base.Controls.Add(this.pnlPicture);
            base.Name = "PGSearchStepOneControl";
            base.Size = new Size(0x1e5, 0x13e);
            base.Load += new EventHandler(this.PGSearchStepOneControl_Load);
            this.gbSearchCondition.ResumeLayout(false);
            this.pnlConditionalSearch.ResumeLayout(false);
            this.pnlConditionalSearch.PerformLayout();
            this.pnlIDSearch.ResumeLayout(false);
            this.pnlIDSearch.PerformLayout();
            this.pnlPicture.ResumeLayout(false);
            this.pnlContent.ResumeLayout(false);
            this.pnlContent.PerformLayout();
            base.ResumeLayout(false);
        }

        private void PGSearchStepOneControl_Load(object sender, EventArgs e)
        {
            this.rbSearchMethod_CheckedChanged(sender, e);
        }

        private void rbSearchMethod_CheckedChanged(object sender, EventArgs e)
        {
            if (this.rbConditionalSearch.Checked)
            {
                this.pnlConditionalSearch.BringToFront();
                this.xtxtGroupID.Clear();
            }
            else
            {
                this.pnlIDSearch.BringToFront();
                this.xtxtKeywords.Clear();
                this.ucGroupCategory.xcmbCategoryOne.SelectedIndex = 0;
            }
        }

        public bool SearchPG(int pageno)
        {
            try
            {
                if (this.rbConditionalSearch.Checked)
                {
                    string s = this.ucGroupCategory.Value;
                    if (int.Parse(s) < 0)
                    {
                        s = string.Empty;
                    }
                    return this.SearchPG(s, this.xtxtKeywords.Text.Trim(), pageno);
                }
                return this.SearchPG(this.xtxtGroupID.Text.Trim());
            }
            catch (Exception exception)
            {
                ClientLogger.WriteException(exception);
                return false;
            }
        }

        private bool SearchPG(string groupID)
        {
            try
            {
                if (!this.CheckUserInput())
                {
                    return false;
                }
                try
                {
                    int.Parse(groupID);
                }
                catch (Exception)
                {
                    BalloonHelper.ShowInputErrorBallon(this.xtxtGroupID, StringTable.SearchPersonalGroup.MsgInvalidGroupID, StringTable.Options.TitleInvalidInput);
                    return false;
                }
                this.CurrentUser.PersonalGroupManager.AsyncSearchGroup(int.Parse(groupID), this._bz);
            }
            catch (Exception exception)
            {
                ClientLogger.WriteException(exception);
                return false;
            }
            return true;
        }

        private bool SearchPG(string category, string keywords, int pageno)
        {
            try
            {
                if (!this.CheckUserInput())
                {
                    return false;
                }
                this.CurrentUser.PersonalGroupManager.AsyncSearchGroup(category, keywords, pageno, this._bz);
            }
            catch (Exception exception)
            {
                ClientLogger.WriteException(exception);
                return false;
            }
            return true;
        }

        private Imps.Client.Core.User CurrentUser
        {
            get
            {
                return this._framework.AccountManager.CurrentUser;
            }
        }
    }
}

⌨️ 快捷键说明

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