Bricklayer.Server.Program.Main C# (CSharp) Метод

Main() статический приватный Метод

static private Main ( string args ) : void
args string
Результат void
        static void Main(string[] args)
        {
            //Setup console events
            consoleHandler = new ConsoleEventDelegate(ConsoleEventCallback);
            SetConsoleCtrlHandler(consoleHandler, true);

            //Setup forms stuff, to possibly be used if an error occurs and a dialog needs to be opened
            System.Windows.Forms.Application.EnableVisualStyles();
            System.Windows.Forms.Application.SetCompatibleTextRenderingDefault(false);

            Console.Title = title;

            //Only show error screen in release builds
            #if DEBUG
                Server = new Server();
                Server.Run();
            #else
                try
                {
                    Server = new Server();
                    Server.Run();
                }
                catch (Exception e)
                {
                    //Open all exceptions in an error dialog
                   System.Windows.Forms.Application.Run(new Bricklayer.Common.ExceptionForm(e));
            }
            #endif
        }