Exemplo n.º 1
0
 private void RemoveNamedObject(MapObjectNamed item)
 {
     if (item.Imported)
     {
         int j = 0;
         for (int i = 0; i < NamedObjects.Count && NamedObjects[i] != item; i++)
             j += NamedObjects[i].Imported ? 1 : 0;
         NamedIdList.RemoveAt(j);
     }
     NamedObjects.Remove(item);
 }
 public static bool IsPropertyPresent(string pName, MapObjectNamed[] selection)
 {
     foreach (MapObjectNamed item in selection)
         if (item.IsPropertyAvailable(pName))
             return true;
     return false;
 }