Exemplo n.º 1
0
        private static void readPrintLocations()
        {
            string[] locations = File.ReadAllLines(@"C:\AppFiles\printcoord.txt");

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