Example #1
0
        private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            UIStyle style = (UIStyle)comboBox1.SelectedIndex;

            Office2007ColorTable    = UIStyleUtils.GetOffice2007ColorScheme(style);
            Config.UIStyle          = style;
            previewControl1.UIStyle = style;
            Refresh();
        }
Example #2
0
        private void CmbShowType_SelectedIndexChanged(object sender, EventArgs e)
        {
            UIStyle style = (UIStyle)btnChangeSkin.SelectedIndex;

            Office2007ColorTable    = UIStyleUtils.GetOffice2007ColorScheme(style);
            Config.UIStyle          = style;
            previewControl1.UIStyle = style;
            Refresh();
        }
Example #3
0
        public void UpdateUIStyle()
        {
            FControlContainer.ColorSchemeStyle     = UIStyleUtils.GetDotNetBarStyle(Designer.UIStyle);
            FControlContainer.Office2007ColorTable = UIStyleUtils.GetOffice2007ColorScheme(Designer.UIStyle);
            Color color = UIStyleUtils.GetControlColor(Designer.UIStyle);

            FStructure.BackColor = color;
            FHorzRuler.BackColor = color;
            FVertRuler.BackColor = color;
            FWorkspace.BackColor = UIStyleUtils.GetAppWorkspaceColor(Designer.UIStyle);
            BackColor            = color;
        }