예제 #1
0
 public MonitorerTrayMenu(MonitorerSystemTrayHost host)
 {
     _monitorItemGroups = new Dictionary <string, ToolStripMenuItem>();
     _monitorItems      = new Dictionary <Guid, MonitorMenuItem>();
     _host = host;
     CreateMenu();
 }
예제 #2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            using (MonitorerSystemTrayHost host = new MonitorerSystemTrayHost())
            {
                host.Display();
                Application.Run();
            }
        }