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