fixed a bug of demo

This commit is contained in:
NaBian committed 2021-09-10 00:06:53 +08:00
1 parent 01b8b40d71
commit a4feb44eb5
2 files changed
+2 -2

No files matched your search

@@ -69,7 +69,7 @@ namespace HandyControlDemo.Service
Index = i,
IsSelected = i % 2 == 0,
Name = $"Name{i}",
Type = (DemoType) i,
Type = (DemoType) (i % 6 + 1),
DataList = dataList,
ImgPath = $"/HandyControlDemo;component/Resources/Img/Avatar/avatar{i % 6 + 1}.png",
Remark = new string(i.ToString()[0], 10)
@@ -10,7 +10,6 @@ namespace HandyControl.Data
public EnumDataProvider()
{
MethodName = nameof(GetValues);
ObjectType = typeof(System.Enum);
}
private Type _type;
@@ -21,6 +20,7 @@ namespace HandyControl.Data
{
_type = value;
MethodParameters.Add(value);
ObjectType = typeof(System.Enum);
}
}