static void Main(string[] args) { GDBLogger.logger.Info("Starting GamerDashBoard Server"); Server gdbServer = new Server(); gdbServer.startServer(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); // Show the system tray icon. using (SysTrayApp pi = new SysTrayApp(gdbServer)) { pi.Display(); // Make sure the application runs! Application.Run(); } }
public SysTrayApp(Server server) { ni = new NotifyIcon(); this.server = server; }
public ContextMenus(Server server) { this.server = server; }