Example #1
0
 /// <summary>
 /// Releases all lazy initialized resources. This will reduce the memory consumption
 /// of this instance.
 /// When requested again, the skin resources will be loaded again automatically.
 /// </summary>
 /// <remarks>
 /// To invoke this method, use method <see cref="SkinManager.ReleaseSkinResources"/>.
 /// </remarks>
 internal virtual void Release()
 {
     _localResourceFilePaths = null;
     if (_localStyleResources != null)
     {
         _localStyleResources.Dispose();
     }
     _localStyleResources = null;
     ReleaseAllGUIModels();
     _inheritedSkinResources = null;
 }