fixed a bug of Transfer

This commit is contained in:
NaBian committed 2019-05-20 21:04:49 +08:00
1 parent 24612e0e5e
commit c2741c50ed
1 file changed
+5 -2
@@ -79,8 +79,8 @@ namespace HandyControl.Controls
{ {
if (_initEnumerable != null) if (_initEnumerable != null)
{ {
OnItemsSourceChanged(null, _itemsSourceInternal); OnItemsSourceChanged(null, _initEnumerable);
_itemsSourceInternal = null; _initEnumerable = null;
} }
if (_initArgs != null) if (_initArgs != null)
@@ -89,9 +89,12 @@ namespace HandyControl.Controls
_initArgs = null; _initArgs = null;
} }
if (_itemsOrigin.Items.Count == 0)
{
Refresh(); Refresh();
} }
} }
}
private void AddItem(object item) private void AddItem(object item)
{ {