添加行为记录查看

This commit is contained in:
Administrator committed 2026-06-01 15:39:01 +08:00
commit 6c27d7c0e5
2 files changed
+15 -3

No files matched your search

+7 -2
View File
@@ -1,5 +1,8 @@
using System;
using SunlightAggregationManager.UserClass;
using SunlightAggregationManager.ViewModel;
using System;
using System.Collections.Generic;
using System.Data;
using System.Text;
using System.Windows;
using System.Windows.Controls;
@@ -25,7 +28,9 @@ namespace SunlightAggregationManager.View
private void UserControl_Loaded(object sender, RoutedEventArgs e)
{
var data =MainWindowViewModel.SQLiteHelpers.ExecuteDataSet(
"select * from ActionLog order by Time DESC", null)?.Tables[0] ?? new DataTable();
CurrentData.ItemsSource=data.AsDataView();
}
}
}