/// <summary> /// Metodo de busqueda de acuerdo a los criterios ingresados. /// </summary> /// <history> /// [vipacheco] 05/Agosto/2016 Created -> Se cambio del evento onclick porque se cambio el control /// </history> private async void btnSearch_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) { if (ValidateCriteria()) { _busyIndicator.IsBusy = true; _busyIndicator.BusyContent = "Loading Guests..."; dtgGuests.ItemsSource = await BRGuests.GetSearchGuestByLS( cmbLeadSourse.SelectedValue != null?cmbLeadSourse.SelectedValue.ToString() : string.Empty, _program == EnumProgram.Inhouse?string.Empty : cmbSalesRoom.SelectedIndex == -1?string.Empty : cmbSalesRoom.SelectedValue.ToString(), txtName.Text, txtRoom.Text, txtReservation.Text, (!txtGUID.Text.Equals(string.Empty) ? Convert.ToInt32(txtGUID.Text) : 0), dtpFrom.Value.Value, dtpTo.Value.Value, _program, txtPR.Text); StatusBarReg.Content = dtgGuests.Items.Count.ToString() + (dtgGuests.Items.Count == 1 ? " Guest" : " Guests"); _busyIndicator.IsBusy = false; } }