public static Control loadControl(Type ascxControlToLoad, O2DockState dockState, String name)
        {
            var o2DockContent = addAscxControlToO2GuiWithDockPanelWithDockState(
                ascxControlToLoad, O2DockUtils.getDockStateFromO2DockState(dockState), name);

            if (o2DockContent != null)
            {
                return(o2DockContent.control);
            }

            return(null);
        }
Esempio n. 2
0
 public static void addControlToMenu(Type ascxControlToLoad, O2DockState dockState, String guiWindowName)
 {
     O2DockPanel.addAscxControlToO2GuiWithDockPanelWithDockState(ascxControlToLoad, O2DockUtils.getDockStateFromO2DockState(dockState), guiWindowName, false);
 }