30 lines
665 B
C#
30 lines
665 B
C#
using System;
|
|
using System.Windows;
|
|
using System.ComponentModel;
|
|
using Hopetry.Services;
|
|
|
|
namespace HeBianGu.App.Disk
|
|
{
|
|
/// <summary>
|
|
/// MainWindow.xaml 的交互逻辑
|
|
/// </summary>
|
|
public partial class ShellWindow
|
|
{
|
|
public ShellWindow()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
protected override void OnClosing(CancelEventArgs e)
|
|
{
|
|
// 确保在窗口关闭时正确处理系统托盘图标
|
|
base.OnClosing(e);
|
|
}
|
|
|
|
protected override void OnClosed(EventArgs e)
|
|
{
|
|
// 在窗口关闭后清理资源
|
|
base.OnClosed(e);
|
|
}
|
|
}
|
|
} |