整合管理器服务端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.0 KiB

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;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace SunlightAggregationManager.View
{
/// <summary>
/// ActionPage.xaml 的交互逻辑
/// </summary>
public partial class ActionPage : UserControl
{
public ActionPage()
{
InitializeComponent();
}
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();
}
}
}