public bool IsFileSupported(string file) { foreach (var fmt in ResourceGroup.GetFileFilters(Kind)) { if (file.ToLower().EndsWith(fmt)) { return(true); } } return(false); }
public ResourceInfo_BackgroundImage(ResourceGroup rg, string file) : base(rg, file) { IsVideoResource = false; foreach (var fmt in ResourceGroup.GetFileFilters(ResourceKind.视频)) { if (file.ToLower().EndsWith(fmt)) { IsVideoResource = true; break; } } }