private void Button_Click_6(object sender, RoutedEventArgs e) { if (startDate.Text != "" && endDate.Text != "") { string fechainicio = startDate.Text; string fechafin = endDate.Text; ReportPreview report = new ReportPreview(); bool okConsulta = report.MostrarInformeFecha(fechainicio, fechafin); if (okConsulta) { report.Show(); } else { System.Windows.MessageBox.Show("No existen registros para las fechas seleccionadas"); } } else { System.Windows.MessageBox.Show("Selecciona Fecha Inicio y Fecha Fin"); } }