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
751 B

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