using System; using System.Globalization; using System.Windows; using System.Windows.Data; using Gestor.Model.Common; namespace Gestor.Application.Converters; public class TipoRepasseVisibilityConverter : IMultiValueConverter { public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture) { //IL_0010: Unknown result type (might be due to invalid IL or missing references) //IL_0015: Unknown result type (might be due to invalid IL or missing references) //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001e: Unknown result type (might be due to invalid IL or missing references) //IL_0080: Unknown result type (might be due to invalid IL or missing references) //IL_0082: Invalid comparison between Unknown and I4 //IL_008e: Unknown result type (might be due to invalid IL or missing references) //IL_0090: Invalid comparison between Unknown and I4 //IL_0096: Unknown result type (might be due to invalid IL or missing references) //IL_0098: Invalid comparison between Unknown and I4 //IL_0092: Unknown result type (might be due to invalid IL or missing references) //IL_0094: Invalid comparison between Unknown and I4 //IL_00ac: Unknown result type (might be due to invalid IL or missing references) //IL_00ae: Invalid comparison between Unknown and I4 //IL_009e: Unknown result type (might be due to invalid IL or missing references) //IL_00a0: Invalid comparison between Unknown and I4 //IL_009a: Unknown result type (might be due to invalid IL or missing references) //IL_009c: Invalid comparison between Unknown and I4 //IL_00ba: Unknown result type (might be due to invalid IL or missing references) //IL_00bc: Invalid comparison between Unknown and I4 //IL_00c8: Unknown result type (might be due to invalid IL or missing references) //IL_00ca: Invalid comparison between Unknown and I4 //IL_00d6: Unknown result type (might be due to invalid IL or missing references) //IL_00d8: Invalid comparison between Unknown and I4 if (parameter == null || values == null) { return (object)(Visibility)2; } TipoRepasse val = (TipoRepasse)values[0]; FormaRepasse val2 = (FormaRepasse)values[1]; return parameter.ToString().ToLower() switch { "incidenciabox" => (object)(Visibility)(((int)val != 2) ? 2 : 0), "basepagtobox" => (object)(Visibility)(((((int)val != 1 || (int)val2 == 1) && (int)val2 != 2 && (int)val2 != 3) || (int)val == 3) ? 2 : 0), "formapagtobox" => (object)(Visibility)(((int)val == 3) ? 2 : 0), "valorbox" => (object)(Visibility)(((int)val == 3) ? 2 : 0), "renovacoesbox" => (object)(Visibility)(((int)val == 3) ? 2 : 0), "cocorretagembox" => (object)(Visibility)(((int)val != 3) ? 2 : 0), _ => (object)(Visibility)0, }; } public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture) { return null; } }