StonehearthEditor.ThumbnailCache.ClearCache C# (CSharp) Method

ClearCache() public static method

public static ClearCache ( ) : void
return void
        public static void ClearCache()
        {
            foreach (Image img in sThumbnailCache.Values)
            {
                img.Dispose();
            }

            sThumbnailCache.Clear();
        }

Usage Example

Exemplo n.º 1
0
 public void Initialize()
 {
     ThumbnailCache.ClearCache();
     new ModuleDataManager(MainForm.kModsDirectoryPath);
     ModuleDataManager.GetInstance().Load();
     ModuleDataManager.GetInstance().FilterAliasTree(treeView, null);
     if (ModuleDataManager.GetInstance().HasErrors)
     {
         toolStripStatusLabel1.Text      = "Errors were encountered while loading manifests";
         toolStripStatusLabel1.ForeColor = Color.Red;
     }
     else
     {
         toolStripStatusLabel1.Text      = "Successfully loaded manifests";
         toolStripStatusLabel1.ForeColor = Color.Black;
     }
 }