コード例 #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();
                    }
                }
            }
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: strotz/Connector
		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();
					}
				}
			}
		}