示例#1
0
        public string GetPrelude(Language?language)
        {
            var prelude = Preludes.FirstOrDefault(file => file.Language == language);

            if (prelude == null && Title != null && this != DefaultSettings)
            {
                return(DefaultSettings.GetPrelude(language));
            }
            return(prelude?.File);
        }
示例#2
0
        public string GetPrelude(string langId)
        {
            var res = Preludes.FirstOrDefault(file => file.LangId == langId);

            if (res == null && Title != null && this != DefaultSettings)
            {
                return(DefaultSettings.GetPrelude(langId));
            }
            return(res?.File);
        }