コード例 #1
0
ファイル: MainWindow.xaml.cs プロジェクト: NasC0/Side_Stuff
        private bool ProcessTimetables(string fullPath)
        {
            try
            {
                TimetableProcessing.ProcessTimetable(fullPath);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
                return(false);
            }

            return(true);
        }
コード例 #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");
    }