* UIPagination: 修正因两次查询数量相等而引起的不刷新

This commit is contained in:
Sunny 2021-03-27 20:38:11 +08:00
parent 8e3147fb0d
commit b483f27724
7 changed files with 11 additions and 13 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -22,6 +22,7 @@
* 2020-07-18: V2.2.6 * 2020-07-18: V2.2.6
* 2020-08-22: V2.2.7 * 2020-08-22: V2.2.7
* 2020-08-28: V2.2.7 * 2020-08-28: V2.2.7
* 2021-03-25: V3.0.2
******************************************************************************/ ******************************************************************************/
using System; using System;

View File

@ -18,6 +18,7 @@
* *
* 2020-01-01: V2.2.0 * 2020-01-01: V2.2.0
* 2020-08-28: V2.2.7 Image绘制 * 2020-08-28: V2.2.7 Image绘制
* 2021-03-20: V3.0.2
******************************************************************************/ ******************************************************************************/
using System; using System;

View File

@ -18,6 +18,7 @@
* *
* 2020-01-01: V2.2.0 * 2020-01-01: V2.2.0
* 2020-07-01: V2.2.6 * 2020-07-01: V2.2.6
* 2020-03-12: V3.0.2
******************************************************************************/ ******************************************************************************/
using System; using System;

View File

@ -17,6 +17,7 @@
* : 2020-07-26 * : 2020-07-26
* *
* 2020-07-15: V2.2.6 * 2020-07-15: V2.2.6
* 2021-03-27: V3.0.2
******************************************************************************/ ******************************************************************************/
using System; using System;
@ -138,12 +139,9 @@ namespace Sunny.UI
get => totalCount; get => totalCount;
set set
{ {
if (totalCount != value) totalCount = Math.Max(0, value);
{ SetShowButtons();
totalCount = Math.Max(0, value); DataBind();
SetShowButtons();
DataBind();
}
} }
} }
@ -203,13 +201,10 @@ namespace Sunny.UI
get => activePage; get => activePage;
set set
{ {
//if (activePage != value) activePage = Math.Max(1, value);
{ edtPage.IntValue = activePage;
activePage = Math.Max(1, value); SetShowButtons();
edtPage.IntValue = activePage; DataBind();
SetShowButtons();
DataBind();
}
} }
} }