private void NotifyIcon_TrayContextMenuOpening(object sender, CancelEventArgs e)
{
BuildContextMenu(NotifyIcon.TrayContextMenu);
if (!App.Current.MainWindow.IsLoaded)
NotifyIcon.TrayContextMenu.IsOpen = true;
}