示例#1
0
 private bool DetalleRepetido(int idReceta, int idEmpleado)
 {
     if (DetallesProduccion.Any(dp => dp.ID_RECETA == idReceta) && DetallesProduccion.Any(dp => dp.ID_EMPLEADO == idEmpleado))
     {
         MessageBox.Show("Detalle repetido.", Application.Current.Resources["NombreAplicacion"].ToString(), MessageBoxButton.OK, MessageBoxImage.Exclamation);
         return(true);
     }
     return(false);
 }