Merge pull request #18 from HandyOrg/master

fix
This commit is contained in:
眾尋 authored and GitHub committed 2019-05-21 09:26:27 +08:00
commit 39cfb18eb5
2 files changed
+7 -3

No files matched your search

@@ -159,6 +159,7 @@ namespace HandyControl.Controls
{
var ctl = (NumericUpDown) d;
var v = (double) e.NewValue;
ctl._textBox.Text = v.ToString();
ctl.OnValueChanged(new FunctionEventArgs<double>(ValueChangedEvent, ctl)
{
@@ -79,8 +79,8 @@ namespace HandyControl.Controls
{
if (_initEnumerable != null)
{
OnItemsSourceChanged(null, _itemsSourceInternal);
_itemsSourceInternal = null;
OnItemsSourceChanged(null, _initEnumerable);
_initEnumerable = null;
}
if (_initArgs != null)
@@ -89,7 +89,10 @@ namespace HandyControl.Controls
_initArgs = null;
}
Refresh();
if (_itemsOrigin.Items.Count == 0)
{
Refresh();
}
}
}