public GalaxyMain() { InitializeComponent(); Winnotify01 = new WinNotifyIcon(); Winnotify01.Show(); GoMainPage(); }
private void ProcedureMonitor_Loaded(object sender, RoutedEventArgs e) { foreach (Window wintest in System.Windows.Application.Current.Windows) { if (wintest.Name == "NotifyIcon") { WinNotifyIcon WinNotifyIcon00 = (WinNotifyIcon)wintest; WinNotifyIcon00.notifyIcon00.ContextMenu.MenuItems["notifyIconProgressBar"].Checked = true; } } }
private void CreatPurpleXAML_Loaded(object sender, RoutedEventArgs e) { foreach (Window wintest in System.Windows.Application.Current.Windows) { if (wintest.Name == "NotifyIcon") { WinNotifyIcon WinNotifyIcon00 = (WinNotifyIcon)wintest; WinNotifyIcon00.notifyIcon00.ContextMenu.MenuItems["notifyIconCreatePurple"].Checked = true; } } }