/// <summary>
        /// We are responsible for creating the application's main form in this override.
        /// </summary>
        protected override void OnCreateMainForm()
        {
            // MessageBox.Show(this.CommandLineArgs.Count.ToString());
            CommandLineOptions options = ParseCommandLine(CommandLineArgs);

            MainController controller = new MainController(options);
            MainForm = new NAntGuiForm(controller, options);
        }
        public NAntGuiForm(MainController controller, CommandLineOptions options)
        {
            InitializeComponent();

            Assert.NotNull(controller, "controller");
            _controller = controller;
            _controller.SetControls(this, _outputWindow);

            Assert.NotNull(options, "options");
            _initialOptions = options;

            AttachEventHandlers();

            SetStyle(ControlStyles.DoubleBuffer, true);
            MainFormSerializer.Attach(this, _propertyWindow, _standardToolStrip, _buildToolStrip);
        }