static void Main(string[] args) { SemantAPIHuman form = null; Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); if (args.Length > 0) { if (args.Contains("-debug")) { AllocConsole(); Console.WriteLine("Greetings from SemantAPI.Human application!"); Console.WriteLine("SemantAPI.Human supports benchmark mode. The command line arguments are following:"); Console.WriteLine("\t-benchmark"); form = new SemantAPIHuman(true); if (args.Contains("-benchmark")) { form.Benchmark = true; } } } else { form = new SemantAPIHuman(false); } Application.Run(form); }
static void Main(string[] args) { SemantAPIHuman form = null; Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); if (args.Length > 0) { if (args.Contains("-debug")) { AllocConsole(); Console.WriteLine("Greetings from SemantAPI.Human application!"); Console.WriteLine("SemantAPI.Human supports benchmark mode. The command line arguments are following:"); Console.WriteLine("\t-benchmark"); form = new SemantAPIHuman(true); if (args.Contains("-benchmark")) form.Benchmark = true; } } else form = new SemantAPIHuman(false); Application.Run(form); }