Пример #1
0
        private bool TryParseCoord(string ident)
        {
            var coord = FormatDecimal.Parse(ident);

            if (coord != null)
            {
                lastWpt = -1;
                return(TryAppendWpt(new Waypoint(ident, coord)));
            }

            return(false);
        }
Пример #2
0
 private static LatLon ParseLatLon(string s)
 {
     return(Format5Letter.Parse(s) ??
            Format7Letter.Parse(s) ??
            FormatDecimal.Parse(s));
 }