Exemplo n.º 1
0
 public void SettingRoomInfo(RoomInfo room)
 {
     txtRoomNumber.Text       = room.RoomNumber;
     cmbRoomType.SelectedText = room.RoomType;
     cmbFloor.SelectedValue   = room.FloorLevel;
 }
Exemplo n.º 2
0
        //if a existing reservation is clicked
        public ReservationDataPresenter(AddReservationView form, ReservationInfo myResInfo, RoomInfo myRoomInfo, CustomerInfo myCustomerInfo, MyButton resButt)
        {
            _form = form;

            //public void setValuesBasedOnReservationId(string roomType, string roomNumber, DateTime startDate, DateTime endDate, string description, decimal lengthOfStay)
            form.setValuesBasedOnReservationId(myRoomInfo, myRoomInfo.RoomType, myRoomInfo.RoomNumber, myResInfo.StartDate, myResInfo.EndDate, myResInfo.Desc, myResInfo.RoomRate, myResInfo.GroupStatus, myResInfo.AmtPaid);
            form.theCustomerInfo = myCustomerInfo;
            form.theReservation  = myResInfo;
            form.referenceButton = resButt;

            form.EditForm = true;
        }