public NAntPadContent()
        {
            LoggingService.Debug("NAntPadContent.ctor");
            // Create main panel.
            contentPanel = new Panel();

            // Initialise treeview.
            treeView      = new NAntPadTreeView();
            treeView.Dock = DockStyle.Fill;

            // Create ToolStrip.
            toolStrip           = ToolbarService.CreateToolStrip(this, "/SharpDevelop/Pads/NAntPad/Toolbar");
            toolStrip.GripStyle = ToolStripGripStyle.Hidden;

            // Create text box.
            textBox          = new TextBox();
            textBox.WordWrap = false;
            textBox.Dock     = DockStyle.Bottom;

            // Tooltip.
            ToolTip toolTip = new ToolTip();

            toolTip.SetToolTip(textBox, StringParser.Parse("Enter NAnt properties."));

            contentPanel.Controls.Add(treeView);
            contentPanel.Controls.Add(toolStrip);
            contentPanel.Controls.Add(textBox);

            ProjectService.SolutionLoaded     += SolutionLoaded;
            ProjectService.SolutionClosed     += SolutionClosed;
            ProjectService.ProjectItemRemoved += ProjectItemRemoved;
            ProjectService.ProjectItemAdded   += ProjectItemAdded;
            SD.Workbench.ViewOpened           += WorkbenchViewOpened;
            SD.Workbench.ViewClosed           += WorkbenchViewClosed;
            FileService.FileRenamed           += FileRenamed;
            FileService.FileRemoved           += FileRemoved;
            FileUtility.FileSaved             += FileSaved;

            NAntRunnerSingleton.Runner.NAntStarted += NAntStarted;
            NAntRunnerSingleton.Runner.NAntStopped += NAntStopped;
            NAntRunnerSingleton.Runner.NAntExited  += NAntExited;

            // Due to lazy loading we have missed the solution loaded event
            // so add it now.
            Refresh();
        }
		public NAntPadContent()
		{
			LoggingService.Debug("NAntPadContent.ctor");
			// Create main panel.
			contentPanel = new Panel();
			
			// Initialise treeview.
			treeView = new NAntPadTreeView();
			treeView.Dock = DockStyle.Fill;
			
			// Create ToolStrip.
			toolStrip = ToolbarService.CreateToolStrip(this, "/SharpDevelop/Pads/NAntPad/Toolbar");
			toolStrip.GripStyle = ToolStripGripStyle.Hidden;
			
			// Create text box.
			textBox = new TextBox();
			textBox.WordWrap = false;
			textBox.Dock = DockStyle.Bottom;
			
			// Tooltip.
			ToolTip toolTip = new ToolTip();
			toolTip.SetToolTip(textBox, StringParser.Parse("Enter NAnt properties."));
			
			contentPanel.Controls.Add(treeView);
			contentPanel.Controls.Add(toolStrip);
			contentPanel.Controls.Add(textBox);
			
			ProjectService.SolutionLoaded += SolutionLoaded;
			ProjectService.SolutionClosed += SolutionClosed;
			ProjectService.ProjectItemRemoved += ProjectItemRemoved;
			ProjectService.ProjectItemAdded += ProjectItemAdded;
			WorkbenchSingleton.Workbench.ViewOpened += WorkbenchViewOpened;
			WorkbenchSingleton.Workbench.ViewClosed += WorkbenchViewClosed;
			FileService.FileRenamed += FileRenamed;
			FileService.FileRemoved += FileRemoved;
			FileUtility.FileSaved += FileSaved;
			
			NAntRunnerSingleton.Runner.NAntStarted += NAntStarted;
			NAntRunnerSingleton.Runner.NAntStopped += NAntStopped;
			NAntRunnerSingleton.Runner.NAntExited += NAntExited;
			
			// Due to lazy loading we have missed the solution loaded event
			// so add it now.
			Refresh();
		}