private void tnBuscar2_Click(object sender, RoutedEventArgs e) { ControllerReceivePayment cargar2 = new ControllerReceivePayment(); ReceivePayment rPayment = cargar2.cardarReceivePayment(txtRefNumber.Text); List<ReceivePayment> lista = new List<ReceivePayment>(); lista.Add(rPayment); this.tblReceive.ItemsSource = lista; }
private void cargarDatosDePagos() { ControllerReceivePayment cargarReceive = new ControllerReceivePayment(); this.tblReceive.ItemsSource = cargarReceive.cargarReceivePayments((DateTime)dpFechaInicio.SelectedDate, (DateTime)dpFechaTermino.SelectedDate); }