Esempio n. 1
0
 // make Reserve instance
 private Reserve makeReserve(string _checkin, string _checkout, Room _room)
 {
     Reserve reserve = new Reserve(
         DateTime.Parse(_checkin),
         DateTime.Parse(_checkout),
         _room
        );
     return reserve;
 }
Esempio n. 2
0
 // make Information
 private string makeInformation(Reserve _reserve)
 {
     Room room = (Room)_reserve.Room;
     string str = "";
     str += "Check In: " + _reserve.CheckIn.ToString("dd/MM/yyyy");
     str += "  Check Out: " + _reserve.CheckOut.ToString("dd/MM/yyyy");
     str += "  Room ID: " + room.RoomID + "\r\n";
     return str;
 }