Ejemplo 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();
        }
Ejemplo 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);
            }
        }
Ejemplo n.º 3
0
 public void AddLocations(KeywordLocationCollection keywordLocations)
 {
     if (keywordLocations != null && keywordLocations.Count > 0)
     {
         foreach (KeywordLocation keywordLoaction in keywordLocations)
         {
             this.AddLocation(keywordLoaction);
         }
     }
     else
     {
         return;
     }
     return;
 }
Ejemplo n.º 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);
            }
        }
Ejemplo n.º 5
0
 public DrawingKeyword()
 {
     Keyword = "";
     KeywordsInOtherLanguage = new KeywordInOtherLanguageCollection();
     Locations = new KeywordLocationCollection();
 }