Esempio n. 1
0
 /// <summary>
 /// Advance the iterator.
 /// </summary>
 public void moveNext()
 {
     if (currentAnatomy != null)
     {
         PreviousMatch = CurrentMatch;
         if (!currentAnatomy.MoveNext())
         {
             currentAnatomy = null;
             PreviousMatch  = null;
             reclickAnatomy = null;
         }
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Set new click results.
 /// </summary>
 /// <param name="matches">The matches to iterate.</param>
 /// <param name="eventLayer">The event layer to watch for mouse movements.</param>
 public void setNewResults(IEnumerable <Anatomy> matches, AnatomyIdentifier reclickAnatomy)
 {
     currentAnatomy = matches.GetEnumerator();
     PreviousMatch  = null;
     if (currentAnatomy.MoveNext())
     {
         this.reclickAnatomy = reclickAnatomy;
     }
     else
     {
         this.reclickAnatomy = null;
         currentAnatomy      = null;
     }
 }
 public bool link(SimObject owner, AnatomyIdentifier parentAnatomy, ref string errorMessage)
 {
     return(true);
 }
Esempio n. 4
0
 /// <summary>
 /// Clear out any current matches.
 /// </summary>
 public void clear()
 {
     currentAnatomy = null;
     reclickAnatomy = null;
     PreviousMatch  = null;
 }