Ejemplo n.º 1
0
 public static void SetSchema(DockPanel dockPanel, Extender.Schema schema)
 {
     if (schema == Extender.Schema.VS2005)
     {
         dockPanel.Extender.AutoHideStripFactory = null;
         dockPanel.Extender.DockPaneCaptionFactory = null;
         dockPanel.Extender.DockPaneStripFactory = null;
     }
     else if (schema == Extender.Schema.VS2003)
     {
         dockPanel.Extender.DockPaneCaptionFactory = new VS2003DockPaneCaptionFactory();
         dockPanel.Extender.AutoHideStripFactory = new VS2003AutoHideStripFactory();
         dockPanel.Extender.DockPaneStripFactory = new VS2003DockPaneStripFactory();
     }
 }
Ejemplo n.º 2
0
        private void SetSchema(object sender, System.EventArgs e)
        {
            CloseAllContents();

            if (sender == schemaVS2005ToolStripMenuItem)
            {
                Extender.SetSchema(dockPanel, Extender.Schema.VS2005);
            }
            else if (sender == schemaVS2003ToolStripMenuItem)
            {
                Extender.SetSchema(dockPanel, Extender.Schema.VS2003);
            }

            schemaVS2005ToolStripMenuItem.Checked = (sender == schemaVS2005ToolStripMenuItem);
            schemaVS2003ToolStripMenuItem.Checked = (sender == schemaVS2003ToolStripMenuItem);
        }