Files
HandyControl/Net40/HandyControlDemo_Net40/UserControl/Controls/NumericUpDownDemoCtl.xaml.cs
T
2019-01-21 11:12:38 +08:00

20 lines
542 B
C#

using HandyControl.Data;
namespace HandyControlDemo.UserControl
{
public partial class NumericUpDownDemoCtl
{
public NumericUpDownDemoCtl()
{
InitializeComponent();
NumericUpDownCustomVerify.VerifyFunc = str => double.TryParse(str, out var v)
? v % 2 < 1e-06
? OperationResult.Failed(Properties.Langs.Lang.Error)
: OperationResult.Success()
: OperationResult.Failed(Properties.Langs.Lang.Error);
}
}
}