public DrawingKeyword(string keyword, KeywordInOtherLanguageCollection keywordsInOtherLanguage, KeywordLocationCollection locations) { Keyword = ""; KeywordsInOtherLanguage = new KeywordInOtherLanguageCollection(); Locations = new KeywordLocationCollection(); Keyword = keyword; KeywordsInOtherLanguage = keywordsInOtherLanguage.Copy(); Locations = locations.Copy(); }
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); } }
public void AddLocations(KeywordLocationCollection keywordLocations) { if (keywordLocations != null && keywordLocations.Count > 0) { foreach (KeywordLocation keywordLoaction in keywordLocations) { this.AddLocation(keywordLoaction); } } else { return; } return; }
/// <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); } }
public DrawingKeyword() { Keyword = ""; KeywordsInOtherLanguage = new KeywordInOtherLanguageCollection(); Locations = new KeywordLocationCollection(); }