Esempio n. 1
0
        public void UpdateNewRoute(string cityName)
        {
            string[]      lines = File.ReadAllLines(p.RoutePath());
            string[]      partlines;
            List <string> gradovi = SQLHelper.GetSpecAirIata(cityName);

            foreach (var l in lines)
            {
                partlines = l.Split(',');

                foreach (var item in gradovi)
                {
                    if (partlines[2].ToString() == item)
                    {
                        InsertRoutes(partlines[0], partlines[1], partlines[2], partlines[3], partlines[4], partlines[5], partlines[6], partlines[7], partlines[8], partlines[9]);
                    }
                }
            }
        }