mirror of
https://github.com/ckaczor/wpf-notifyicon.git
synced 2026-01-14 01:25:45 -05:00
* Applied some code conventions, used more current language features which should improve readability and making it easier to re-factor / modify. Also fixed some typos in documentation. * Changes based on PR conversation for the SystemInfo * Some modifications due to conversations on the PR, especially I removed the FlagsAttribute on the BalloonFlags. * Removed Silverlight targeting in code.
25 lines
618 B
C#
25 lines
618 B
C#
using System.Windows;
|
|
|
|
namespace Samples.Tutorials.Commands
|
|
{
|
|
/// <summary>
|
|
/// Interaction logic for CommandWindow.xaml
|
|
/// </summary>
|
|
public partial class CommandWindow : Window
|
|
{
|
|
public CommandWindow()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
|
|
protected override void OnClosing(System.ComponentModel.CancelEventArgs e)
|
|
{
|
|
//clean up notifyicon (would otherwise stay open until application finishes)
|
|
CustomCommandNotifyIcon.Dispose();
|
|
RoutedCommandNotifyIcon.Dispose();
|
|
|
|
base.OnClosing(e);
|
|
}
|
|
}
|
|
} |