add Recommendation
This commit is contained in:
1 parent
ee4125e2bf
commit
cf5f84869d
33 files changed
+320
-141
No files matched your search
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using HandyControlDemo.Data;
|
||||
|
||||
namespace HandyControlDemo.ViewModel
|
||||
{
|
||||
public class ItemsDisplayViewModel : DemoViewModelBase<AvatarModel>
|
||||
{
|
||||
public ItemsDisplayViewModel(Func<List<AvatarModel>> getDatAction)
|
||||
{
|
||||
#if netle40
|
||||
Task.Factory.StartNew(() => DataList = getDatAction?.Invoke());
|
||||
#else
|
||||
Task.Run(() => DataList = getDatAction?.Invoke());
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user