public void AddToolBox()
 {
     if (ToolBoxWindow == null)
     {
         ToolBoxWindow = new ToolBoxForm();
         SharpDevelopSideBar sideBar = FormsDesignerViewContent.FormsDesignerToolBox;
         sideBar.Dock   = DockStyle.Fill;
         sideBar.Parent = ToolBoxWindow;
         AddWindowToDockPanel(ToolBoxWindow, MainDockPanel, OutputWindow.Dock, DockState.DockLeft, OutputWindow.IsFloat, null, -1);
         ToolBoxWindow.Show();
     }
     else
     {
         ToolBoxWindow.Show();
     }
 }
Beispiel #2
0
 private void AddDesignerSidebars()
 {
     if (ToolBoxWindow == null)
     {
         ToolBoxWindow = new ToolBoxForm();
         SharpDevelopSideBar sideBar = FormsDesignerViewContent.FormsDesignerToolBox;
         sideBar.Dock   = DockStyle.Fill;
         sideBar.Parent = ToolBoxWindow;
         AddWindowToDockPanel(ToolBoxWindow, MainDockPanel, OutputWindow.Dock, DockState.DockLeft, OutputWindow.IsFloat, null, -1);
         ToolBoxWindow.Visible = false;
         ToolBoxWindow.Hide();
     }
     if (PropertiesWindow == null)
     {
         PropertiesWindow = new PropertiesForm();
         Panel properties = FormsDesignerViewContent.PropertyPad.PropertyPadPanel;
         properties.Dock   = DockStyle.Fill;
         properties.Parent = PropertiesWindow;
         AddWindowToDockPanel(PropertiesWindow, MainDockPanel, DockStyle.Fill, DockState.DockRight, OutputWindow.IsFloat, ProjectPane, int.MaxValue);
         PropertiesWindow.Visible = false;
         PropertiesWindow.Hide();
     }
 }
 public void AddToolBox()
 {
     if (ToolBoxWindow == null)
     {
         ToolBoxWindow = new ToolBoxForm();
         SharpDevelopSideBar sideBar = FormsDesignerViewContent.FormsDesignerToolBox;
         sideBar.Dock = DockStyle.Fill;
         sideBar.Parent = ToolBoxWindow;
         AddWindowToDockPanel(ToolBoxWindow, MainDockPanel, OutputWindow.Dock, DockState.DockLeft, OutputWindow.IsFloat, null, -1);
         ToolBoxWindow.Show();
     }
     else
         ToolBoxWindow.Show();
 }
 private void AddDesignerSidebars()
 {
     if (ToolBoxWindow == null)
     {
         ToolBoxWindow = new ToolBoxForm();
         SharpDevelopSideBar sideBar = FormsDesignerViewContent.FormsDesignerToolBox;
         sideBar.Dock = DockStyle.Fill;
         sideBar.Parent = ToolBoxWindow;
         AddWindowToDockPanel(ToolBoxWindow, MainDockPanel, OutputWindow.Dock, DockState.DockLeft, OutputWindow.IsFloat, null, -1);
         ToolBoxWindow.Visible = false;
         ToolBoxWindow.Hide();
     }
     if (PropertiesWindow == null)
     {
         PropertiesWindow = new PropertiesForm();
         Panel properties = FormsDesignerViewContent.PropertyPad.PropertyPadPanel;
         properties.Dock = DockStyle.Fill;
         properties.Parent = PropertiesWindow;
         AddWindowToDockPanel(PropertiesWindow, MainDockPanel, DockStyle.Fill, DockState.DockRight, OutputWindow.IsFloat, ProjectPane, int.MaxValue);
         PropertiesWindow.Visible = false;
         PropertiesWindow.Hide();
     }
 }