/// <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);
        }
 private MainFormSerializer(NAntGuiForm form, PropertyWindow propertyWindow, ToolStrip standardToolStrip,
     ToolStrip buildToolStrip)
 {
     _mainForm = form;
     _mainForm.Load += OnLoad;
     _mainForm.Closing += OnClosing;
     _propertyWindow = propertyWindow;
     _standardToolStrip = standardToolStrip;
     _buildToolStrip = buildToolStrip;
 }
Beispiel #3
0
 private MainFormSerializer(NAntGuiForm form, PropertyWindow propertyWindow, ToolStrip standardToolStrip,
                            ToolStrip buildToolStrip)
 {
     _mainForm          = form;
     _mainForm.Load    += OnLoad;
     _mainForm.Closing += OnClosing;
     _propertyWindow    = propertyWindow;
     _standardToolStrip = standardToolStrip;
     _buildToolStrip    = buildToolStrip;
 }
        internal void SetControls(NAntGuiForm mainForm, OutputWindow outputWindow)
        {
            // may decouple the form and the controller (using events) later
            _mainForm = mainForm;
            _mainForm.DockPanel.ActiveDocumentChanged += DockPanelActiveDocumentChanged;

            _outputWindow                  = outputWindow;
            _outputWindow.Enter           += OutputWindowEnter;
            _outputWindow.Leave           += OutputWindowLeave;
            _outputWindow.FileNameClicked += OutputWindowFileNameClicked;
        }
 internal static void Attach(NAntGuiForm form, PropertyWindow propertyWindow, ToolStrip standardToolStrip,
     ToolStrip buildToolStrip)
 {
     new MainFormSerializer(form, propertyWindow, standardToolStrip, buildToolStrip);
 }
        internal void SetControls(NAntGuiForm mainForm, OutputWindow outputWindow)
        {
            // may decouple the form and the controller (using events) later
            _mainForm = mainForm;
            _mainForm.DockPanel.ActiveDocumentChanged += DockPanelActiveDocumentChanged;

            _outputWindow = outputWindow;
            _outputWindow.Enter += OutputWindowEnter;
            _outputWindow.Leave += OutputWindowLeave;
            _outputWindow.FileNameClicked += OutputWindowFileNameClicked;
        }
Beispiel #7
0
 internal static void Attach(NAntGuiForm form, PropertyWindow propertyWindow, ToolStrip standardToolStrip,
                             ToolStrip buildToolStrip)
 {
     new MainFormSerializer(form, propertyWindow, standardToolStrip, buildToolStrip);
 }