C#简单的通用基础字典实现方法

2019-12-26 11:27:51王冬梅

                }

                if (_btFirst != null)
                {
                    _btFirst.Enabled = this._PageIndex <= 1 ? false : true;
                }
                if (_btPreview != null)
                {
                    _btPreview.Enabled = _btFirst.Enabled;
                }
                if (_btLast != null)
                {
                    _btLast.Enabled = this._PageIndex >= this._PageCount ? false : true;
                }

                if (_btLast != null)
                {
                    _btLast.Enabled = _btLast.Enabled;
                }
            }
            catch (Exception ex)
            {
                //发生webservice错误
                if (_errorDataLoad != null)
                {
                    _errorDataLoad("连接WebService服务器失败(001)!nr错误原因:" + ex.Message);
                }