/// <summary> /// Loads a default skin. /// </summary> /// <param name="skin">The skin to load.</param> public void LoadDefaultSkin(DefaultSkin skin) { // Dont load the skin imemdialy. Wait for first access. // This allows a custom skin to be loaded before the default skin _currentSkin = null; _defaultSkin = skin; }
/// <summary> /// Loads the default skin. /// </summary> /// <returns></returns> private SkinBase LoadDefaultSkin() { // skin implementation switch (_defaultSkin) { case DefaultSkin.Office2007Luna: _currentSkin = new Office2007Skin(Office2007Style.LunaBlue); break; case DefaultSkin.Office2007Obsidian: _currentSkin = new Office2007Skin(Office2007Style.ObsidianBlack); break; case DefaultSkin.Office2007Silver: _currentSkin = new Office2007Skin(Office2007Style.Silver); break; } // load skin LoadSkin(_currentSkin); return(_currentSkin); }
/// <summary> /// Loads the default skin. /// </summary> /// <returns></returns> private SkinBase LoadDefaultSkin() { // skin implementation switch (_defaultSkin) { case DefaultSkin.Office2007Luna: _currentSkin = new Office2007Skin(Office2007Style.LunaBlue); break; case DefaultSkin.Office2007Obsidian: _currentSkin = new Office2007Skin(Office2007Style.ObsidianBlack); break; case DefaultSkin.Office2007Silver: _currentSkin = new Office2007Skin(Office2007Style.Silver); break; } // load skin LoadSkin(_currentSkin); return _currentSkin; }
/// <summary> /// Loads a skin implementation /// </summary> /// <param name="skin">The skin.</param> public void LoadSkin(SkinBase skin) { _currentSkin = skin; _currentSkin.OnLoad(); }