예제 #1
0
        private static void RunConsole(MainFormController controller, CommandLineArguments args)
        {
            if (args == null)
            {
                throw new ArgumentNullException("args");
            }

            AppDomain.CurrentDomain.UnhandledException += CurrentDomainOnUnhandledException;

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new ConsoleView(controller, args));
        }
예제 #2
0
        public ConsoleView(MainFormController controller, CommandLineArguments args)
        {
            this.InitializeComponent();
            this.Visible = false;

            this.Controller = controller;
            this._assemblyName = args.AssemblyName;
            this.TypeName = args.TypeName;
            this.DestinationPath = args.DestinationPath;

            // Override config settings.
            Settings.OutputType = args.OutputType;
            Settings.IncludeAssemblyReferences = args.IncludeReferenceAssemblies;

            this.Controller.Initialize(this);
        }