internal static void DeleteCache() { Find.WindowStack.Add(new Dialog_MessageBox( I18n.ConfirmDeletingCrossPromotionCache( CachePath, CacheCount, CacheSize), "Confirm".Translate(), () => { var dir = new DirectoryInfo(CachePath); dir.Delete(true); Notify_CrossPromotionPathChanged(); }, "Cancel".Translate(), buttonADestructive: true)); }