protected virtual bool OnCheckValid() { if (this.IsDefault) { return(true); } if (!File.Exists((string)this.FileName)) { return(false); } ICompositeResourceProcesser resourceProcesser = this.GetCompositeResourceProcesser(); if (resourceProcesser != null) { List <string> matchedImages = resourceProcesser.GetMatchedImages((string)this.FileName); if (matchedImages != null) { foreach (string path in matchedImages) { if (!File.Exists(path)) { return(false); } } } } return(true); }
private List <string> GetImageFiles() { ICompositeResourceProcesser resourceProcesser = ProjectsService.Instance.GetCompositeResourceProcesser(this.FullPath); if (resourceProcesser != null) { return(resourceProcesser.GetMatchedImages(this.FullPath)); } return((List <string>)null); }
private static List <string> ProcessPairResources(string filePath) { ICompositeResourceProcesser resourceProcesser = Services.ProjectsService.GetCompositeResourceProcesser(filePath); if (resourceProcesser != null) { return(resourceProcesser.GetMatchedImages(filePath)); } return((List <string>)null); }