31 lines
757 B
C#
31 lines
757 B
C#
using CapMachine.Wpf.Services;
|
||
using System.Windows;
|
||
|
||
namespace CapMachine.Wpf.Views
|
||
{
|
||
/// <summary>
|
||
/// Interaction logic for MainWindow.xaml
|
||
/// </summary>
|
||
public partial class MainView : Window
|
||
{
|
||
public MainView(ILogService logService)
|
||
{
|
||
InitializeComponent();
|
||
LogService = logService;
|
||
}
|
||
|
||
public ILogService LogService { get; }
|
||
|
||
/// <summary>
|
||
/// Windows状态
|
||
/// </summary>
|
||
/// <param name="sender"></param>
|
||
/// <param name="e"></param>
|
||
private void Window_StateChanged(object sender, EventArgs e)
|
||
{
|
||
LogService.Info($"Windows状态:{this.WindowState}-Visibility: {this.Visibility}");
|
||
}
|
||
|
||
|
||
}
|
||
} |