1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
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;
}
}
|