22 lines
665 B
C#
22 lines
665 B
C#
using System.Windows;
|
|
using HandyControlDemo.Tools;
|
|
using HandyControlDemo.ViewModel;
|
|
|
|
namespace HandyControlDemo.UserControl
|
|
{
|
|
public partial class NotifyIconDemoCtl
|
|
{
|
|
public NotifyIconDemoCtl()
|
|
{
|
|
InitializeComponent();
|
|
|
|
AssemblyHelper.Register(nameof(NotifyIconDemoCtl), this);
|
|
Unloaded += NotifyIconDemoCtl_Unloaded;
|
|
}
|
|
|
|
private void NotifyIconDemoCtl_Unloaded(object sender, RoutedEventArgs e) => ViewModelLocator.Instance.NotifyIconDemo.Cleanup();
|
|
|
|
private void ButtonPush_OnClick(object sender, RoutedEventArgs e) => NotifyIconContextContent.CloseContextControl();
|
|
}
|
|
}
|