Пример #1
0
        //Shows all the information about all the buses from the DB
        public DataSet showAllBuses()
        {
            BusCAD  c  = new BusCAD();
            DataSet ds = c.showBuses(this);

            return(ds);
        }
Пример #2
0
        //Looks for all the hotels from an especifc city
        public DataSet searchAllBuses(String city1, String city2)
        {
            BusCAD  c  = new BusCAD();
            DataSet ds = c.searchBuses(city1, city2);

            return(ds);
        }
Пример #3
0
        //Shearches the information of the bus of the provided id
        public DataSet searchIDBuses(String IDB)
        {
            BusCAD  c  = new BusCAD();
            DataSet ds = c.searchIDBuses(IDB);

            return(ds);
        }
Пример #4
0
        //Adds a new bus tho the DB
        public DataSet add_Bus()
        {
            BusCAD  c  = new BusCAD();
            DataSet ds = c.addBus(this);

            return(ds);
        }
Пример #5
0
        //Updates the information stored about a bus
        public DataSet update_Bus(int i)
        {
            BusCAD  c  = new BusCAD();
            DataSet ds = c.updateBus(this, i);

            return(ds);
        }
Пример #6
0
        public ArrayList showBuses()
        {
            ArrayList a = new ArrayList();
            BusCAD    c = new BusCAD();

            a = c.showBuses();
            return(a);
        }
Пример #7
0
        public ArrayList search_Bus()
        {
            ArrayList a = new ArrayList();
            BusCAD    c = new BusCAD();

            a = c.searchBus(this);
            return(a);
        }
Пример #8
0
        public void update_Bus()
        {
            BusCAD c = new BusCAD();

            c.updateBus(this);
        }
Пример #9
0
        public void delete_Bus()
        {
            BusCAD c = new BusCAD();

            c.deleteBus(this);
        }
Пример #10
0
        public void add_Bus()
        {
            BusCAD c = new BusCAD();

            c.addBus(this);
        }