Browse Source

清理屏幕数据

Lishi
xxe 2 years ago
parent
commit
22c4048577
1 changed files with 11 additions and 1 deletions
  1. +11
    -1
      HKCardOUT/ViewModels/AdWindowViewModel.cs

+ 11
- 1
HKCardOUT/ViewModels/AdWindowViewModel.cs View File

@@ -23,6 +23,7 @@ namespace HKCardOUT.ViewModels
{ {
Foods.Add(""); Foods.Add("");
} }
} }


#region 属性 #region 属性
@@ -34,9 +35,9 @@ namespace HKCardOUT.ViewModels
private AdInfoModel _mRAdinfo = new AdInfoModel(); private AdInfoModel _mRAdinfo = new AdInfoModel();


public ObservableCollection<string> Foods { get; set; } = new ObservableCollection<string>(); public ObservableCollection<string> Foods { get; set; } = new ObservableCollection<string>();
#endregion




#endregion


void FoodsInit(int[] ScreenLoc) void FoodsInit(int[] ScreenLoc)
{ {
@@ -60,6 +61,15 @@ namespace HKCardOUT.ViewModels
{ {
FoodsInit(BindScreen); FoodsInit(BindScreen);


ThreadManage.GetInstance().StartLong(() => {
if (DateTime.Now.Hour == 16)
{
LAdInfo.AInfo = new ObservableCollection<ScreenInfoDto>();
RAdinfo.AInfo = new ObservableCollection<ScreenInfoDto>();
}
Thread.Sleep(5000);
}, "清理屏幕数据", true);

ThreadManage.GetInstance().StartLong(() => ThreadManage.GetInstance().StartLong(() =>
{ {
var model = (new HKCore()).PullDaySaleLog(BindScreen); var model = (new HKCore()).PullDaySaleLog(BindScreen);


Loading…
Cancel
Save