private void Application_Startup(object sender, StartupEventArgs e) { MainWindow mainWindow = new MainWindow(); mainWindow.Show(); TrayIcon.Setup(mainWindow); }
public static void Setup(Window window) { TrayIcon trayIcon = new TrayIcon(window); }