From b7b06604c4057163332b4017e02fe38bb40f51e4 Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期二, 03 十二月 2024 21:46:00 +0800 Subject: [PATCH] 修改了初始化 --- DevApp/Gs.DevApp/UserControl/UcPageBar.cs | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/DevApp/Gs.DevApp/UserControl/UcPageBar.cs b/DevApp/Gs.DevApp/UserControl/UcPageBar.cs index e0c5213..27932ad 100644 --- a/DevApp/Gs.DevApp/UserControl/UcPageBar.cs +++ b/DevApp/Gs.DevApp/UserControl/UcPageBar.cs @@ -22,10 +22,10 @@ private void cbxRowCount_SelectedIndexChanged(object sender, EventArgs e) { - RowsCount = Convert.ToInt32(cbxRowCount.Text); + int _RowsCount = Convert.ToInt32(cbxRowCount.Text); CurrentPage = 1; if (PagerEvent != null) - if (RecordCount > 0 && RowsCount>0) + if (_RowsCount > 0 && _RowsCount > 0) BtnEvents(sender, e); } @@ -132,7 +132,7 @@ /// <summary> /// 姣忛〉鏉℃暟 /// </summary> - public int RowsCount { get; set; } + public int RowsCount { get { return int.Parse(this.cbxRowCount.Text); } } int _RecordCount; -- Gitblit v1.9.3