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.

30 lines
758 B

6 months ago
using System.Windows;
using Autofac;
using HybirdFrameworkCore.Autofac;
using log4net;
6 months ago
using Service.System;
6 months ago
namespace WpfStarter;
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
6 months ago
private static readonly ILog Log = LogManager.GetLogger(typeof(MainWindow));
private readonly SysConfigService _sysConfigService;
6 months ago
public MainWindow()
{
InitializeComponent();
_sysConfigService = AppInfo.Container.Resolve<SysConfigService>();
6 months ago
}
6 months ago
private void TestClick(object sender, RoutedEventArgs e)
{
var sysUsers = _sysConfigService.Query();
6 months ago
MessageBox.Show($"count={sysUsers.Count}");
Log.Info($"count={sysUsers.Count}");
}
}