Beispiel #1
0
 public Managment()
 {
     Stops    = new Hashtable();
     Stations = new Hashtable();
     Bus1     = new Hashtable();
     RealTime = new GenericTime(2019, 5, 10, 39, 9, 25);
     Console.WriteLine("initilized menthods in managment");
     loadStops();
 }
Beispiel #2
0
        //Constructor
        public Managment()
        {
            Routes   = new Hashtable();
            Stops    = new Hashtable();
            Stations = new Hashtable();
            Bus1     = new Hashtable();

            absolutePath();
            //                        año dia mes min hor seg
            RealTime = new GenericTime(18, 01, 11, 35, 5, 25, "AM");

            LoadDate = new DialogDataAddress(this);
            Load();
        }
Beispiel #3
0
        public void addTime(String posX, String posY, String time)
        {
            String[] date  = time.Split(' ');
            String[] hour  = date[1].Split('.');
            String[] date2 = date[0].Split('-');

            String key = Int32.Parse(date2[0]) + "-" + date2[1] + "-" + Int32.Parse(date2[2]) + " " + Int32.Parse(hour[0]) + "." + Int32.Parse(hour[1]) + "." + Int32.Parse(hour[2]) + " " + date[2];

            if (!UbicationTime.ContainsKey(key))
            {
                Ubication nuevou = new Ubication(posX, posY);
                //   Int32.Parse(date2[2]) Int32.Parse(date2[0]), Int32.Parse(date2[1]), Int32.Parse(date2[2]), Int32.Parse(hour[0]), Int32.Parse(hour[1]), Int32.Parse(hour[2]), date[2]
                GenericTime time2 = new GenericTime(Int32.Parse(date2[2]), Int32.Parse(date2[0]), (date2[1]), Int32.Parse(hour[0]), Int32.Parse(hour[1]), Int32.Parse(hour[2]), date[2]);
                nuevou.Time = time2;
                UbicationTime.Add(key, nuevou);
                //Next(key, nuevou);
            }
        }
Beispiel #4
0
        //Constructor
        public Managment()
        {
            westStops  = new Hashtable();
            eastStops  = new Hashtable();
            northStops = new Hashtable();
            southStops = new Hashtable();

            westStations  = new Hashtable();
            eastStations  = new Hashtable();
            northStations = new Hashtable();
            southStations = new Hashtable();

            Stops    = new Hashtable();
            Stations = new Hashtable();
            Bus1     = new Hashtable();

            //                        año dia mes min hor seg
            RealTime = new GenericTime(18, 01, 11, 35, 5, 25, "AM");

            loadStops();
            createBus();
            timeReading();
        }