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); } }
/// <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); } }
public DrawingKeyword() { Keyword = ""; KeywordsInOtherLanguage = new KeywordInOtherLanguageCollection(); Locations = new KeywordLocationCollection(); }