V1版本
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System.Windows;
|
||||
using CapMachine.Wpf.Services;
|
||||
using System.Windows;
|
||||
|
||||
namespace CapMachine.Wpf.Views
|
||||
{
|
||||
@@ -7,9 +8,24 @@ namespace CapMachine.Wpf.Views
|
||||
/// </summary>
|
||||
public partial class MainView : Window
|
||||
{
|
||||
public MainView()
|
||||
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}");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user