private SetFieldsForDeepClone ( |
||
properties | ||
times | Times | |
frames | ||
text | ||
translation | ||
style | ||
return | void |
/* Public methods */ /// <summary></summary> /// <remarks>SubtitleProperties is not cloned and should be set afterwards.</remarks> public Subtitle Clone(SubtitleProperties propertiesClone) { Subtitle subtitleClone = new Subtitle(); Times timesClone = this.times.Clone(subtitleClone); Frames framesClone = this.frames.Clone(subtitleClone); SubtitleText textClone = this.text.Clone() as SubtitleText; SubtitleText translationClone = (this.translation != null ? this.translation.Clone() as SubtitleText : null); Style styleClone = this.style.Clone() as Style; subtitleClone.SetFieldsForDeepClone(propertiesClone, timesClone, framesClone, textClone, translationClone, styleClone); return(subtitleClone); }
/* Public methods */ /// <summary></summary> /// <remarks>SubtitleProperties is not cloned and should be set afterwards.</remarks> public Subtitle Clone (SubtitleProperties propertiesClone) { Subtitle subtitleClone = new Subtitle(); Times timesClone = this.times.Clone(subtitleClone); Frames framesClone = this.frames.Clone(subtitleClone); SubtitleText textClone = this.text.Clone() as SubtitleText; SubtitleText translationClone = (this.translation != null ? this.translation.Clone() as SubtitleText : null); Style styleClone = this.style.Clone() as Style; subtitleClone.SetFieldsForDeepClone(propertiesClone, timesClone, framesClone, textClone, translationClone, styleClone); return subtitleClone; }