public static ArrayList ReadTrainlistFromDB(string schedule, string trackpath , ref Control c)
        {
            control = c;
            trains = new ArrayList();
            string[] files = new string[8000];
            string trackp = trackpath;
            if (trackp == "") trackp = c.getTrackPath()+@"\EBula";
            else trackp += @"\EBuLa";
            try
            {
                files = Directory.GetFiles(trackp, "train_"+schedule+"*.xml");
            }
            catch (Exception)
            {
                System.Windows.Forms.MessageBox.Show("Der Pfad "+trackp+" existiert nicht!");
            }

            c.track_ht.Clear();

            foreach(string s in files)
            {
                string tr_num = "", tr_typ = "";
                string tr_name = parseTrainFile(s, out tr_num, out tr_typ);
                trains.Add(tr_name);
                try
                {
                    c.track_ht.Add(tr_typ+tr_num, c.buffer_trackname);
                }
                catch(Exception){break;}
            }

            return trains;
        }
						{