Frapid.WebsiteBuilder.Models.Themes.ThemeUploader.Validate C# (CSharp) Method

Validate() private method

private Validate ( ) : bool
return bool
        private bool Validate()
        {
            string configFile = Path.Combine(this.ExtractedDirectory, "Theme.config");

            if (!File.Exists(configFile))
            {
                return false;
            }

            var info = ThemeInfoParser.Parse(configFile);

            if (info == null || !info.IsValid)
            {
                return false;
            }

            this.ThemeInfo = info;
            return true;
        }