diff --git a/Bin/net40/SunnyUI.dll b/Bin/net40/SunnyUI.dll index 0d582f9d..05a3163b 100644 Binary files a/Bin/net40/SunnyUI.dll and b/Bin/net40/SunnyUI.dll differ diff --git a/Bin/net5.0-windows/SunnyUI.dll b/Bin/net5.0-windows/SunnyUI.dll index cddb1a77..93a39975 100644 Binary files a/Bin/net5.0-windows/SunnyUI.dll and b/Bin/net5.0-windows/SunnyUI.dll differ diff --git a/Bin/netcoreapp3.1/SunnyUI.dll b/Bin/netcoreapp3.1/SunnyUI.dll index 68a1277a..9679db37 100644 Binary files a/Bin/netcoreapp3.1/SunnyUI.dll and b/Bin/netcoreapp3.1/SunnyUI.dll differ diff --git a/SunnyUI/Controls/UIDataGridView.cs b/SunnyUI/Controls/UIDataGridView.cs index d558b7c4..683122b3 100644 --- a/SunnyUI/Controls/UIDataGridView.cs +++ b/SunnyUI/Controls/UIDataGridView.cs @@ -22,6 +22,7 @@ * 2020-07-18: V2.2.6 重绘水平滚动条 * 2020-08-22: V2.2.7 更新了水平和垂直滚动条的显示,优化滚动效果。 * 2020-08-28: V2.2.7 调整水平滚动条 + * 2021-03-25: V3.0.2 修改垂直滚动条和原版一致,并增加翻页方式滚动。 ******************************************************************************/ using System; diff --git a/SunnyUI/Controls/UINavBar.cs b/SunnyUI/Controls/UINavBar.cs index dd93619d..9b07c41d 100644 --- a/SunnyUI/Controls/UINavBar.cs +++ b/SunnyUI/Controls/UINavBar.cs @@ -18,6 +18,7 @@ * * 2020-01-01: V2.2.0 增加文件说明 * 2020-08-28: V2.2.7 增加节点的Image绘制 + * 2021-03-20: V3.0.2 增加可设置背景图片 ******************************************************************************/ using System; diff --git a/SunnyUI/Controls/UINavMenu.cs b/SunnyUI/Controls/UINavMenu.cs index df68b57b..4941a8dd 100644 --- a/SunnyUI/Controls/UINavMenu.cs +++ b/SunnyUI/Controls/UINavMenu.cs @@ -18,6 +18,7 @@ * * 2020-01-01: V2.2.0 增加文件说明 * 2020-07-01: V2.2.6 解决引发事件所有结点重绘导致闪烁;解决滚轮失效问题。 + * 2020-03-12: V3.0.2 增加设置二级菜单底色 ******************************************************************************/ using System; diff --git a/SunnyUI/Controls/UIPagination.cs b/SunnyUI/Controls/UIPagination.cs index 775fd0dd..11f204a7 100644 --- a/SunnyUI/Controls/UIPagination.cs +++ b/SunnyUI/Controls/UIPagination.cs @@ -17,6 +17,7 @@ * 创建日期: 2020-07-26 * * 2020-07-15: V2.2.6 新增分页控件 + * 2021-03-27: V3.0.2 修正因两次查询数量相等而引起的不刷新 ******************************************************************************/ using System; @@ -138,12 +139,9 @@ namespace Sunny.UI get => totalCount; set { - if (totalCount != value) - { - totalCount = Math.Max(0, value); - SetShowButtons(); - DataBind(); - } + totalCount = Math.Max(0, value); + SetShowButtons(); + DataBind(); } } @@ -203,13 +201,10 @@ namespace Sunny.UI get => activePage; set { - //if (activePage != value) - { - activePage = Math.Max(1, value); - edtPage.IntValue = activePage; - SetShowButtons(); - DataBind(); - } + activePage = Math.Max(1, value); + edtPage.IntValue = activePage; + SetShowButtons(); + DataBind(); } }