liuwf 5 months ago
parent 5bc34aa758
commit 3d6a2c0436

@ -123,7 +123,9 @@ namespace SlnMesnac.WPF.ViewModel
List<LogoIdentify> list = await logoIdentifyService.GetAllRecordAsync(); List<LogoIdentify> list = await logoIdentifyService.GetAllRecordAsync();
if (list == null || list.Count == 0) return; if (list == null || list.Count == 0) return;
await App.Current.Dispatcher.BeginInvoke((Action)(() => LogoIdentifyDataGrid.Clear();
await App.Current.Dispatcher.BeginInvoke((Action)(() =>
{ {
LogoIdentifyDataGrid.Clear(); LogoIdentifyDataGrid.Clear();
list = list.OrderByDescending(x=>x.RecordTime).ToList(); list = list.OrderByDescending(x=>x.RecordTime).ToList();

Loading…
Cancel
Save