Пример #1
0
        public DataSet update_hotel(int i)
        {
            HotelCAD c  = new HotelCAD();
            DataSet  ds = c.updateHotel(this, i);

            return(ds);
        }
Пример #2
0
        // TO-DO : Figure out how to implement this using disconnected db

/*       public ArrayList search_hotel()
 *     {
 *         ArrayList a = new ArrayList();
 *         HotelCAD c = new HotelCAD();
 *         a = c.searchHotel(this);
 *         return a;
 *     }*/

        public DataSet showAllHotels()
        {
            HotelCAD c  = new HotelCAD();
            DataSet  ds = c.showHotels(this);

            return(ds);
        }
Пример #3
0
        public void add_hotel()
        {
            HotelCAD c = new HotelCAD();

            c.addHotel(this);
        }