コード例 #1
0
 public void ChangeStyle(CustomStyleColorTable colorTable)
 {
     foreach (Control control in this.customControls)
     {
         SetControlStyle(control, colorTable);
     }
 }
コード例 #2
0
        public static void SetControlStyle(Control control, CustomStyleColorTable colorTable)
        {
            if (colorTable.AllControlSettings != null)
            {
                control.ApplyCustomStyle(colorTable.AllControlSettings);
            }

            Button button = control as Button;
            if (button != null && colorTable.ButtonSettings != null)
            {
                button.ApplyCustomStyle(colorTable.ButtonSettings);
            }
        }