Beispiel #1
0
 public virtual void RemoveSection(Section section)
 {
     if (section.First == this)
     {
         OutgoingSections.Remove(section);
     }
     if (section.Last == this)
     {
         IncomingSections.Remove(section);
     }
 }
Beispiel #2
0
 public void AddSection(VisualRoadSection section)
 {
     if (section.First == this)
     {
         if (!OutgoingSections.Contains(section))
         {
             OutgoingSections.Add(section);
         }
     }
     if (section.Last == this)
     {
         if (!IncomingSections.Contains(section))
         {
             IncomingSections.Add(section);
         }
     }
 }