mirror of
https://github.com/ckaczor/wpf-notifyicon.git
synced 2026-01-14 10:00:10 -05:00
23 lines
589 B
C#
23 lines
589 B
C#
using System.Windows;
|
|
|
|
namespace Samples.Tutorials
|
|
{
|
|
/// <summary>
|
|
/// Interaction logic for SimpleWindowWithNotifyIcon.xaml
|
|
/// </summary>
|
|
public partial class SimpleWindowWithNotifyIcon : Window
|
|
{
|
|
public SimpleWindowWithNotifyIcon()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
protected override void OnClosing(System.ComponentModel.CancelEventArgs e)
|
|
{
|
|
//clean up notifyicon (would otherwise stay open until application finishes)
|
|
MyNotifyIcon.Dispose();
|
|
|
|
base.OnClosing(e);
|
|
}
|
|
}
|
|
} |