internal void ApplyControlSkin(Control control)
        {
            if (control == null)
            {
                throw new ArgumentNullException("control");
            }
            ControlSkin skin   = null;
            string      skinID = control.SkinID;

            skin = (ControlSkin)this.ControlSkins[CreateSkinKey(control.GetType(), skinID)];
            if (skin != null)
            {
                skin.ApplySkin(control);
            }
        }
Пример #2
0
        internal void ApplyControlSkin(Control control)
        {
            if (control == null)
            {
                throw new ArgumentNullException("control");
            }

            ControlSkin skin   = null;
            String      skinId = control.SkinID;

            skin = (ControlSkin)ControlSkins[CreateSkinKey(control.GetType(), skinId)];

            // Don't throw if ControlSkin corresponds to the skinID does not exist.
            Debug.Assert(skin == null || skin.ControlType == control.GetType());

            if (skin != null)
            {
                skin.ApplySkin(control);
            }
        }