Exemple #1
0
        public static Position ReadPosition()
        {
            double lon = GpsCoordinateParser.ToDouble(Console.ReadLine());
            double lat = GpsCoordinateParser.ToDouble(Console.ReadLine());

            return(new Position(lon, lat));
        }
Exemple #2
0
        private Defibrillator(string data)
        {
            var pieces   = data.Split(DATA_SEPARATOR);
            var position = new Position(GpsCoordinateParser.ToDouble(pieces[4]), GpsCoordinateParser.ToDouble(pieces[5]));

            Id       = int.Parse(pieces[0]);
            Name     = pieces[1];
            Address  = pieces[2];
            Phone    = pieces[3];
            Position = position;
        }