Пример #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();
        }
Пример #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);
            }
        }
Пример #3
0
 public void AddLocations(KeywordLocationCollection keywordLocations)
 {
     if (keywordLocations != null && keywordLocations.Count > 0)
     {
         foreach (KeywordLocation keywordLoaction in keywordLocations)
         {
             this.AddLocation(keywordLoaction);
         }
     }
     else
     {
         return;
     }
     return;
 }
Пример #4
0
        /// <summary>
        /// Deep Clone
        /// </summary>
        /// <returns></returns>
        public KeywordLocationCollection Copy()
        {
            KeywordLocationCollection keywordLocations = new KeywordLocationCollection();

            if (this.Count <= 0)
            {
                return(keywordLocations);
            }
            else
            {
                foreach (KeywordLocation keywordLocation in this)
                {
                    keywordLocations.Add(keywordLocation.Copy());
                }
                return(keywordLocations);
            }
        }
Пример #5
0
 public DrawingKeyword()
 {
     Keyword = "";
     KeywordsInOtherLanguage = new KeywordInOtherLanguageCollection();
     Locations = new KeywordLocationCollection();
 }