From 22c404857761ef5d033b601841412863c13133cf Mon Sep 17 00:00:00 2001 From: xxe Date: Fri, 18 Nov 2022 16:40:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=85=E7=90=86=E5=B1=8F=E5=B9=95=E6=95=B0?= =?UTF-8?q?=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HKCardOUT/ViewModels/AdWindowViewModel.cs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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);