28 lines
641 B
C#
28 lines
641 B
C#
using System.ComponentModel;
|
|
using HandyControl.Controls;
|
|
using HandyControlDemo.Data;
|
|
|
|
namespace HandyControlDemo
|
|
{
|
|
public partial class MainWindow
|
|
{
|
|
public MainWindow()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
protected override void OnClosing(CancelEventArgs e)
|
|
{
|
|
if (GlobalData.NotifyIconIsShow)
|
|
{
|
|
MessageBox.Info(Properties.Langs.Lang.AppClosingTip, Properties.Langs.Lang.Tip);
|
|
Hide();
|
|
e.Cancel = true;
|
|
}
|
|
else
|
|
{
|
|
base.OnClosing(e);
|
|
}
|
|
}
|
|
}
|
|
} |