public StatusStripW(IContainer container)
        {
            container.Add(this);

            InitializeComponent();
            ToolStripProfessionalRenderer toolStripRenderer = new Office2007Renderer();
            Panels.ProfessionalColorTable colorTable = new Office2007BlueColorTable();
            // XiaoCai.WinformUI.Panels.ProfessionalColorTable colorTable = new OfficeColorTable();
            //XiaoCai.WinformUI.Panels.ProfessionalColorTable colorTable = new Office2007BlueColorTable();
            //XiaoCai.WinformUI.Panels.ProfessionalColorTable colorTable = new Office2007BlackColorTable();
            PanelColors panelColorTable = colorTable.PanelColorTable;
            if (panelColorTable != null)
            {

                PanelSettingsManager.SetPanelProperties(
                    this.Controls,
                    panelColorTable);
            }
            this.m_currentToolStripRenderer = toolStripRenderer;
            if (colorTable.Equals(this.m_currentProfessionalColorTable) == false)
            {
                this.m_currentProfessionalColorTable = colorTable;
                object renderer = Activator.CreateInstance(this.m_currentToolStripRenderer.GetType(), new object[] { colorTable });
                this.m_currentToolStripRenderer = renderer as ToolStripProfessionalRenderer;
                ToolStripManager.Renderer = this.m_currentToolStripRenderer;
            }
        }
        private static void SetPanelsStyle(Control control,Style style)
        {

            ToolStripRenderer m_currentToolStripRenderer;
            ToolStripProfessionalRenderer toolStripRenderer = new Office2007Renderer();
            Panels.ProfessionalColorTable colorTable = StyleBuilderFactory.GetOffice2007ColorTable(style);

            PanelColors panelColorTable = colorTable.PanelColorTable;
            
            if (panelColorTable != null)
            {
                PanelSettingsManager.SetPanelProperties(
                    control.Controls,
                    panelColorTable);
            }
            m_currentToolStripRenderer = toolStripRenderer;
                object renderer = Activator.CreateInstance(m_currentToolStripRenderer.GetType(), new object[] { colorTable });
                m_currentToolStripRenderer = renderer as ToolStripProfessionalRenderer;
                ToolStripManager.Renderer = m_currentToolStripRenderer;
        }
        public void SetStyle(Style style)
        {
            ToolStripProfessionalRenderer toolStripRenderer = new Office2007Renderer();
            Panels.ProfessionalColorTable colorTable = StyleBuilderFactory.GetOffice2007ColorTable(style);

            PanelColors panelColorTable = colorTable.PanelColorTable;
            if (panelColorTable != null)
            {
                ControlCollection controls = new ControlCollection(this);
                PanelSettingsManager.SetPanelProperties(
                    //this.Controls,
                    controls,
                    panelColorTable);
            }
            this.m_currentToolStripRenderer = toolStripRenderer;
            if (colorTable.Equals(this.m_currentProfessionalColorTable) == false)
            {
                this.m_currentProfessionalColorTable = colorTable;
                object renderer = Activator.CreateInstance(this.m_currentToolStripRenderer.GetType(), new object[] { colorTable });
                this.m_currentToolStripRenderer = renderer as ToolStripProfessionalRenderer;
                ToolStripManager.Renderer = this.m_currentToolStripRenderer;
            }
            this.Refresh();
        }