/// <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; }
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); }