Exemplo n.º 1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            using (var logWindow = new LogWindow())
            {
                using (var trayIcon = new TrayIcon(logWindow))
                {
                    using (var host = new ServiceHost(logWindow, trayIcon))
                    {
                        host.Start();
                        Application.Run();
                    }
                }
            }
        }
Exemplo n.º 2
0
		static void Main()
		{
			Application.EnableVisualStyles();
			Application.SetCompatibleTextRenderingDefault(false);

			using (var logWindow = new LogWindow())
			{
				using (var trayIcon = new TrayIcon(logWindow))
				{
					using (var host = new ServiceHost(logWindow, trayIcon))
					{
						host.Start();
						Application.Run();
					}
				}
			}
		}