Beispiel #1
0
 private bool AddLink(PointListItem item)
 {
     if (m_LinkItems.Any(x => x.Id() == item.Id()))
     {
         return(false);
     }
     m_LinkItems.Add(item);
     return(true);
 }
Beispiel #2
0
 private void FindChains(PointListItem startItem)
 {
     while (m_OriginsList.Count > 0)
     {
         if (IsHaveNeighbors(startItem.Id()))
         {
             //var ch = new Chain(startItem);
         }
         else
         {
             m_OriginsList.Remove(startItem);
         }
     }
 }
Beispiel #3
0
 public int Id()
 {
     return(m_Self.Id());
 }
Beispiel #4
0
 public Tuple <int, int, int> GetIds()
 {
     return(new Tuple <int, int, int>(A.Id(), B.Id(), C.Id()));
 }