Exemplo n.º 1
0
 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();
     }
 }
Exemplo n.º 2
0
 public void EnableDesigner()
 {
     if (ToolBoxWindow != null)
     {
         //ToolBoxWindow.Visible = true;
         ToolBoxWindow.Show();
     }
     if (PropertiesWindow != null)
     {
         //PropertiesWindow.Visible = true;
         PropertiesWindow.Show();
     }
     BottomTabsVisible    = false;
     mrDesigner.Visible   = true;
     miDelete.Visible     = true;
     miDelete.Enabled     = true;
     miToolBox.Visible    = true;
     miProperties.Visible = true;
     if (_currentCodeFileDocument.DesignerPage != null && _currentCodeFileDocument.DesignerPage.Controls.Count > 0) //roman//
     {
         _currentCodeFileDocument.DesignerPage.Controls[0].Focus();                                                 //ñòàâèì ôîêóñ íà designSurface, ÷òîáû ñîîáùåíèÿ îò êëàâèàòóðû íå íàïðàâëÿëèñü â òåêñòîâûé ðåäàêòîð
     }
 }