Пример #1
0
        /// <summary>
        /// Gives all Types of <see cref="OSMElement"/>
        /// </summary>
        /// <returns>list of all Types of <see cref="OSMElement"/> with possible values OR range</returns>
        public static List <String> getAllTypes()
        {
            List <String> displayedGuiElements = GeneralProperties.getAllTypes();

            displayedGuiElements.AddRange(BrailleRepresentation.getAllTypes());
            return(displayedGuiElements);
        }
Пример #2
0
 /// <summary>
 /// Gets a specified property
 /// </summary>
 /// <param name="elementName">name of the wanted property</param>
 /// <param name="osmElement">properties of the node</param>
 /// <returns>the wanted property from <para>properties</para> </returns>
 public static object getElement(String elementName, OSMElement osmElement)
 {
     if (GeneralProperties.getAllTypes().Contains(elementName))
     {
         return(GeneralProperties.getPropertyElement(elementName, osmElement.properties));
     }
     if (BrailleRepresentation.getAllTypes().Contains(elementName))
     {
         return(BrailleRepresentation.getPropertyElement(elementName, osmElement.brailleRepresentation));
     }
     //TODO: Events
     return(null);
 }