Ejemplo n.º 1
0
        private bool ProcessTimetables(string fullPath)
        {
            try
            {
                TimetableProcessing.ProcessTimetable(fullPath);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
                return(false);
            }

            return(true);
        }
Ejemplo n.º 2
0
    static void Main()
    {
        //XmlDocument timetables = new XmlDocument();
        //string fullTimetablesPath = @"C:\Users\Kickass\Desktop\Ceco\TEST TIMETABLES.xml";
        //string dirPath = Path.GetDirectoryName(fullTimetablesPath);
        //timetables.Load(fullTimetablesPath);

        //var mainNodes = timetables.DocumentElement.SelectNodes("/schedules/vehicleType");
        //List<KeyValuePair<int, int>> timetableLineOrder = new List<KeyValuePair<int, int>>();
        //List<RouteStop> timetableStops = new List<RouteStop>();

        //ExtractTimetableTimes(mainNodes, timetableLineOrder, timetableStops);

        //WriteTimetables(timetableLineOrder, timetableStops, dirPath);

        TimetableProcessing.ProcessTimetable(@"C:\Users\Kickass\Desktop\Ceco\TEST TIMETABLES.xml");
    }