예제 #1
0
        /// <summary>
        /// Carga los resultados en el grid
        /// </summary>
        /// <history>
        /// [vipacheco] 06/Junio/2016 Created
        /// </history>
        private async void Load_Grid()
        {
            _busyIndicator.IsBusy      = true;
            _busyIndicator.BusyContent = "Loading guests...";
            grdGuest.ItemsSource       = await BRGuests.GetSearchGuestGeneral(_dateParent, dtpStart.Value.Value.Date, dtpEnd.Value.Value.Date, string.IsNullOrEmpty(txtguID.Text)? 0 : Convert.ToInt32(txtguID.Text),
                                                                              string.IsNullOrEmpty(txtName.Text)? "" : txtName.Text, cboLeadSource.SelectedValue == null? "" : cboLeadSource.SelectedValue.ToString(),
                                                                              cboSalesRoom.SelectedValue == null? "" : cboSalesRoom.SelectedValue.ToString(), string.IsNullOrEmpty(txtRoomNum.Text)? "" : txtRoomNum.Text,
                                                                              string.IsNullOrEmpty(txtReservation.Text)? "" : txtReservation.Text, string.IsNullOrEmpty(txtPR.Text)? "" : txtPR.Text, _module);

            _busyIndicator.IsBusy = false;
        }