Exemple #1
0
        private static void readDiningLocations()
        {
            string[] locations = File.ReadAllLines(@"C:\AppFiles\foodcoords.txt");

            for (int i = 0; i < locations.Length; i++)
            {
                DiningLocation loc  = new DiningLocation();
                string[]       temp = locations[i].Split(':');
                loc.Name      = temp[0];
                loc.SubTitle  = temp[1];
                loc.Latitude  = double.Parse(temp[2]);
                loc.Longitude = double.Parse(temp[3]);
                LocationAPI.AddDiningLocation(loc);
            }
        }