Files
CapMachine/CapMachine.Wpf/Views/MainView.xaml.cs
2024-12-18 15:50:21 +08:00

31 lines
757 B
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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}");
}
}
}