Esempio n. 1
0
        static void Main(string[] args)
        {
            GeneratorController controller = new GeneratorController();

            controller.GeneratorForm.Closing += new CancelEventHandler(controller.GeneratorForm_Closing);
            controller.CommandLineArgs        = args;
            // process the command line args here so we have a UI, also, we can not process in Init without
            // modifying more code to take args[]
            controller.ProcessCommandLineArgs();
            Application.Run();
        }
        private static void Main(string[] args)
        {
            Thread.CurrentThread.CurrentUICulture = new CultureInfo("en");
            var controller = new GeneratorController();

            controller.MainForm.Closing += controller.GeneratorFormClosing;
            controller.CommandLineArgs   = args;
            // process the command line args here so we have a UI, also, we can not process in Init without
            // modifying more code to take args[]
            controller.ProcessCommandLineArgs();
            Application.Run();
        }