Example #1
0
        // 刷新
        private void toolStripButton_channel_refresh_Click(object sender, EventArgs e)
        {
            string strError = "";
            int    nRet     = 0;

            if (this._queryState == null)
            {
                this._queryState = new QueryState();
            }

            Hashtable table = StringUtil.ParseParameters(this._queryState.Query);

            nRet = DoSearch(
                (string)table["username"],
                (string)table["ip"],
                this._queryState.Style,
                true,
                out strError);
            if (nRet == -1)
            {
                goto ERROR1;
            }

            return;

ERROR1:
            MessageBox.Show(this, strError);
        }
Example #2
0
        public QueryState Clone()
        {
            QueryState new_state = new QueryState();

            new_state.Query   = this.Query;
            new_state.Style   = this.Style;
            new_state.Message = this.Message;

            return(new_state);
        }