Пример #1
0
 public void AddSegment(Segment segment)
 {
     if (segment != null && !segments.Contains (segment)) {
         segments.Add (segment);
         segment.Parent = this;
     }
 }
Пример #2
0
 public void AddSegment(Segment segment)
 {
     if (segment != null && !segments.Contains (segment.ID)) {
         segments[segment.ID] = segment;
     }
 }