static void Main(string[] args) { xbs_settings settings = new xbs_settings(); if (args.Length > 0) { console_app = new xbs_console_app(); console_app.run(settings, args); } else { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); try { main_form = new FormMain(); } catch (ApplicationException) { main_form = null; } if (main_form != null) Application.Run(main_form); } }
static void Main(string[] args) { xbs_settings settings = new xbs_settings(); if (args.Length > 0) { console_app = new xbs_console_app(); console_app.run(settings, args); } else { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); try { main_form = new FormMain(); } catch (ApplicationException) { main_form = null; } if (main_form != null) { Application.Run(main_form); } } }