Exemple #1
0
        public static ReferenceText GetReferenceText(ReferenceTextIdentifier id)
        {
            ReferenceText referenceText;

            if (s_instantiatedReferenceTexts.TryGetValue(id, out referenceText))
            {
                referenceText.ReloadModifiedBooks();
            }
            else
            {
                referenceText = new ReferenceText(id.Metadata, id.Type, id.ProjectFolder);
                referenceText.LoadBooks();
                switch (id.Type)
                {
                case ReferenceTextType.English:
                //case ReferenceTextType.Azeri:
                //case ReferenceTextType.French:
                //case ReferenceTextType.Indonesian:
                //case ReferenceTextType.Portuguese:
                case ReferenceTextType.Russian:
                    //case ReferenceTextType.Spanish:
                    //case ReferenceTextType.TokPisin:
                    referenceText.m_vers = ScrVers.English;
                    break;
                }
                s_instantiatedReferenceTexts[id] = referenceText;
            }
            return(referenceText);
        }
Exemple #2
0
 public static ReferenceText GetStandardReferenceText(ReferenceTextType referenceTextType)
 {
     return(GetReferenceText(ReferenceTextIdentifier.GetOrCreate(referenceTextType)));
 }