Esempio n. 1
0
        public DrawingKeyword(string keyword, KeywordInOtherLanguageCollection keywordsInOtherLanguage, KeywordLocationCollection locations)
        {
            Keyword = "";
            KeywordsInOtherLanguage = new KeywordInOtherLanguageCollection();
            Locations = new KeywordLocationCollection();

            Keyword = keyword;
            KeywordsInOtherLanguage = keywordsInOtherLanguage.Copy();
            Locations = locations.Copy();
        }
Esempio n. 2
0
        public DrawingKeyword(string keyword, KeywordInOtherLanguageCollection keywordsInOtherLanguage, params KeywordLocation[] locations)
        {
            Keyword = "";
            KeywordsInOtherLanguage = new KeywordInOtherLanguageCollection();
            Locations = new KeywordLocationCollection();

            Keyword = keyword;
            KeywordsInOtherLanguage = keywordsInOtherLanguage.Copy();
            if (locations != null && locations.Length > 0)
            {
                Locations.AddLocations(locations);
            }
        }
Esempio n. 3
0
        /// <summary>
        /// Deep Clone
        /// </summary>
        /// <returns></returns>
        public KeywordInOtherLanguageCollection Copy()
        {
            KeywordInOtherLanguageCollection keywordsInOtherLanguage = new KeywordInOtherLanguageCollection();

            if (this.Count <= 0)
            {
                return(keywordsInOtherLanguage);
            }
            else
            {
                foreach (KeywordInOtherLanguage keywordInOtherLanguage in this)
                {
                    keywordsInOtherLanguage.Add(keywordInOtherLanguage.Copy());
                }
                return(keywordsInOtherLanguage);
            }
        }
Esempio n. 4
0
 public DrawingKeyword()
 {
     Keyword = "";
     KeywordsInOtherLanguage = new KeywordInOtherLanguageCollection();
     Locations = new KeywordLocationCollection();
 }