diff --git a/HKCardOUT/ViewModels/AdWindowViewModel.cs b/HKCardOUT/ViewModels/AdWindowViewModel.cs index 0828f9e..80a2850 100644 --- a/HKCardOUT/ViewModels/AdWindowViewModel.cs +++ b/HKCardOUT/ViewModels/AdWindowViewModel.cs @@ -23,6 +23,7 @@ namespace HKCardOUT.ViewModels { Foods.Add(""); } + } #region 属性 @@ -34,9 +35,9 @@ namespace HKCardOUT.ViewModels private AdInfoModel _mRAdinfo = new AdInfoModel(); public ObservableCollection Foods { get; set; } = new ObservableCollection(); + #endregion - #endregion void FoodsInit(int[] ScreenLoc) { @@ -60,6 +61,15 @@ namespace HKCardOUT.ViewModels { FoodsInit(BindScreen); + ThreadManage.GetInstance().StartLong(() => { + if (DateTime.Now.Hour == 16) + { + LAdInfo.AInfo = new ObservableCollection(); + RAdinfo.AInfo = new ObservableCollection(); + } + Thread.Sleep(5000); + }, "清理屏幕数据", true); + ThreadManage.GetInstance().StartLong(() => { var model = (new HKCore()).PullDaySaleLog(BindScreen);