public void Init()
        {
            XPThemeType themeType = GetThemeType();

            if (themeType != XPThemeType.Unknown)
            {
                int id = ((int)themeType) - 1;
                InitOfficeColors(id);
            }
            else
            {
                InitStandardColors();
            }

            colors[Office2003Color.TabPageForeColor]   = colors[Office2003Color.Text];
            colors[Office2003Color.TabBackColor1]      = colors[Office2003Color.Button1];
            colors[Office2003Color.TabBackColor2]      = colors[Office2003Color.Button2];
            colors[Office2003Color.TabPageBackColor1]  = colors[Office2003Color.Button1Pressed];
            colors[Office2003Color.TabPageBackColor2]  = colors[Office2003Color.Button2Pressed];
            colors[Office2003Color.TabPageBorderColor] = colors[Office2003Color.Border];
        }
 public void InitColor(XPThemeType themeType)
 {
     var id = GetStyleId(themeType);
     base.InitOfficeColors(id);
 }
Beispiel #3
0
        public void InitColor(XPThemeType themeType)
        {
            var id = GetStyleId(themeType);

            base.InitOfficeColors(id);
        }
 private int GetStyleId(XPThemeType themeType)
 {
     return ((int)themeType) - 1;
 }
Beispiel #5
0
 private int GetStyleId(XPThemeType themeType)
 {
     return(((int)themeType) - 1);
 }