* 修复日期选择控件值切换响应两次
This commit is contained in:
parent
ef146ceff8
commit
f425f9fdd3
Binary file not shown.
Binary file not shown.
@ -126,6 +126,7 @@ namespace Sunny.UI.Demo
|
||||
private void uiDatePicker3_ValueChanged(object sender, DateTime value)
|
||||
{
|
||||
ShowInfoTip(uiDatePicker3.Value.DateString());
|
||||
Console.WriteLine(uiDatePicker3.Value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -93,7 +93,7 @@ namespace Sunny.UI
|
||||
try
|
||||
{
|
||||
DateTime dt = Text.ToDateTime(DateFormat);
|
||||
Value = dt;
|
||||
if (Value != dt) Value = dt;
|
||||
}
|
||||
catch
|
||||
{
|
||||
|
@ -81,7 +81,7 @@ namespace Sunny.UI
|
||||
try
|
||||
{
|
||||
DateTime dt = Text.ToDateTime(DateFormat);
|
||||
Value = dt;
|
||||
if (Value != dt) Value = dt;
|
||||
}
|
||||
catch
|
||||
{
|
||||
@ -100,8 +100,7 @@ namespace Sunny.UI
|
||||
try
|
||||
{
|
||||
DateTime dt = Text.ToDateTime(DateFormat);
|
||||
if (Value != dt)
|
||||
Value = dt;
|
||||
if (Value != dt) Value = dt;
|
||||
}
|
||||
catch
|
||||
{
|
||||
|
@ -73,7 +73,7 @@ namespace Sunny.UI
|
||||
try
|
||||
{
|
||||
DateTime dt = (DateTime.Now.DateString() + " " + Text).ToDateTime(DateTimeEx.DateFormat + " " + timeFormat);
|
||||
Value = dt;
|
||||
if (Value != dt) Value = dt;
|
||||
}
|
||||
catch
|
||||
{
|
||||
@ -92,8 +92,7 @@ namespace Sunny.UI
|
||||
try
|
||||
{
|
||||
DateTime dt = (DateTime.Now.DateString() + " " + Text).ToDateTime(DateTimeEx.DateFormat + " " + timeFormat);
|
||||
if (Value != dt)
|
||||
Value = dt;
|
||||
if (Value != dt) Value = dt;
|
||||
}
|
||||
catch
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user