public ProjectBrowserPanel()
        {
            projectBrowserControl = new ProjectBrowserControl();
            projectBrowserControl.VerticalAlignment   = VerticalAlignment.Stretch;
            projectBrowserControl.HorizontalAlignment = HorizontalAlignment.Stretch;

            DockPanel.SetDock(projectBrowserControl, Dock.Bottom);
            //Controls.Add(projectBrowserControl);
            dockPanel = new DockPanel();
            dockPanel.LastChildFill = true;


            if (SD.AddInTree.GetTreeNode("/SharpDevelop/Pads/ProjectBrowser/ToolBar/Standard", false) != null)
            {
                toolStrip     = ToolBarService.CreateToolBar(this, this, "/SharpDevelop/Pads/ProjectBrowser/ToolBar/Standard");
                standardItems = new object[toolStrip.Items.Count];
                toolStrip.Items.CopyTo(standardItems, 0);
                toolStrip.Margin = new Thickness(0, 5, 0, 5);

                DockPanel.SetDock(toolStrip, Dock.Top);
                dockPanel.Children.Add(toolStrip);
                Style tbStyle = Application.Current.TryFindResource("MaterialDesignToolBar") as Style;
                if (tbStyle != null)
                {
                    toolStrip.Style = tbStyle;
                }
            }

            dockPanel.Children.Add(projectBrowserControl);
            this.Content = dockPanel;


            projectBrowserControl.TreeView.SelectedItemChanging += projectBrowserControl_TreeView_SelectedItemChanging;
        }
		public ProjectBrowserPanel()
		{
			projectBrowserControl      = new ProjectBrowserControl();
			projectBrowserControl.Dock = DockStyle.Fill;
			Controls.Add(projectBrowserControl);
			
			toolStrip = ToolbarService.CreateToolStrip(this, "/SharpDevelop/Pads/ProjectBrowser/ToolBar/Standard");
			toolStrip.ShowItemToolTips  = true;
			toolStrip.Dock = DockStyle.Top;
			toolStrip.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
			toolStrip.Stretch   = true;
			standardItems = new ToolStripItem[toolStrip.Items.Count];
			toolStrip.Items.CopyTo(standardItems, 0);
			Controls.Add(toolStrip);
			projectBrowserControl.TreeView.BeforeSelect += TreeViewBeforeSelect;
		}
        public ProjectBrowserPanel()
        {
            projectBrowserControl      = new ProjectBrowserControl();
            projectBrowserControl.Dock = DockStyle.Fill;
            Controls.Add(projectBrowserControl);

            toolStrip = ToolbarService.CreateToolStrip(this, "/SharpDevelop/Pads/ProjectBrowser/ToolBar/Standard");
            toolStrip.ShowItemToolTips = true;
            toolStrip.Dock             = DockStyle.Top;
            toolStrip.GripStyle        = System.Windows.Forms.ToolStripGripStyle.Hidden;
            toolStrip.Stretch          = true;
            standardItems = new ToolStripItem[toolStrip.Items.Count];
            toolStrip.Items.CopyTo(standardItems, 0);
            Controls.Add(toolStrip);
            projectBrowserControl.TreeView.BeforeSelect += TreeViewBeforeSelect;
        }
 public ProjectBrowserUpdater(ProjectBrowserControl projectBrowser)
 {
     this.projectBrowser = projectBrowser;
     SD.ProjectService.ProjectItemAdded += ProjectItemAdded;
 }