示例#1
0
        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);
        }
示例#2
0
        private List <string> GetImageFiles()
        {
            ICompositeResourceProcesser resourceProcesser = ProjectsService.Instance.GetCompositeResourceProcesser(this.FullPath);

            if (resourceProcesser != null)
            {
                return(resourceProcesser.GetMatchedImages(this.FullPath));
            }
            return((List <string>)null);
        }
示例#3
0
        private static List <string> ProcessPairResources(string filePath)
        {
            ICompositeResourceProcesser resourceProcesser = Services.ProjectsService.GetCompositeResourceProcesser(filePath);

            if (resourceProcesser != null)
            {
                return(resourceProcesser.GetMatchedImages(filePath));
            }
            return((List <string>)null);
        }