Exemplo n.º 1
0
        public bool IsEqualTo(LanguageSourceData Source)
        {
            if (Source.mLanguages.Count != mLanguages.Count)
            {
                return(false);
            }

            for (int i = 0, imax = mLanguages.Count; i < imax; ++i)
            {
                if (Source.GetLanguageIndex(mLanguages[i].Name) < 0)
                {
                    return(false);
                }
            }

            if (Source.mTerms.Count != mTerms.Count)
            {
                return(false);
            }

            for (int i = 0; i < mTerms.Count; ++i)
            {
                if (Source.GetTermData(mTerms[i].Term) == null)
                {
                    return(false);
                }
            }

            return(true);
        }