|
|
@ -1,5 +1,8 @@ |
|
|
using System; |
|
|
using SunlightAggregationManager.UserClass; |
|
|
|
|
|
using SunlightAggregationManager.ViewModel; |
|
|
|
|
|
using System; |
|
|
using System.Collections.Generic; |
|
|
using System.Collections.Generic; |
|
|
|
|
|
using System.Data; |
|
|
using System.Text; |
|
|
using System.Text; |
|
|
using System.Windows; |
|
|
using System.Windows; |
|
|
using System.Windows.Controls; |
|
|
using System.Windows.Controls; |
|
|
@ -25,7 +28,9 @@ namespace SunlightAggregationManager.View |
|
|
|
|
|
|
|
|
private void UserControl_Loaded(object sender, RoutedEventArgs e) |
|
|
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(); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|