public static void UnselectAgent(LSAgent agent)
 {
     if (agent == null)
     {
         return;
     }
     SelectedAgents.Remove(agent);
     agent.IsSelected = false;
 }
 public static void SelectAgent(LSAgent agent)
 {
     if (agent == null)
     {
         return;
     }
     SelectedAgents.Add(agent);
     agent.IsSelected = true;
 }
 public static void ClearSelection()
 {
     for (i = 0; i < SelectedAgents.PeakCount; i++)
     {
         if (SelectedAgents.arrayAllocated [i])
         {
             SelectedAgents.innerArray [i].IsSelected = false;
         }
     }
     SelectedAgents.FastClear();
 }