Inheritance: System.Windows.Forms.Form
Exemple #1
0
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main()
        {
#if RunAsService
            ServiceHost host = new ServiceHost();
            RedirectConsoleOutput(host);
            ServiceBase.Run(host);
#else
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            DebugHost host = new DebugHost();
            RedirectConsoleOutput(host.ServiceHost);
            Application.Run(host);
#endif
        }
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main()
        {
#if RunAsService
            ServiceHost host = new ServiceHost();
            RedirectConsoleOutput(host);
            ServiceBase.Run(host);
#else
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            DebugHost host = new DebugHost();
            RedirectConsoleOutput(host.ServiceHost);
            Application.Run(host);
#endif
        }