blob: a008f609528d3c2cdaff4693ba422ea122ccb043 (
plain)
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
using System;
using System.Globalization;
using System.Windows;
using System.Windows.Data;
using System.Windows.Markup;
using Gestor.Model.Common;
using Gestor.Model.Domain.Seguros;
namespace Gestor.Application.Converters;
public class IsNamedObjectVisibilityConverter : MarkupExtension, IValueConverter
{
private static int column;
private static TipoTela tela;
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
//IL_0001: Unknown result type (might be due to invalid IL or missing references)
//IL_0007: Expected O, but got Unknown
//IL_0008: Unknown result type (might be due to invalid IL or missing references)
//IL_000a: Unknown result type (might be due to invalid IL or missing references)
//IL_000f: Unknown result type (might be due to invalid IL or missing references)
//IL_0028: Unknown result type (might be due to invalid IL or missing references)
//IL_002d: Unknown result type (might be due to invalid IL or missing references)
//IL_002e: Unknown result type (might be due to invalid IL or missing references)
//IL_0031: Invalid comparison between Unknown and I4
//IL_0017: Unknown result type (might be due to invalid IL or missing references)
//IL_001c: Unknown result type (might be due to invalid IL or missing references)
//IL_0033: Unknown result type (might be due to invalid IL or missing references)
//IL_0036: Unknown result type (might be due to invalid IL or missing references)
//IL_0038: Invalid comparison between Unknown and I4
//IL_006b: Unknown result type (might be due to invalid IL or missing references)
//IL_005e: Unknown result type (might be due to invalid IL or missing references)
//IL_003a: Unknown result type (might be due to invalid IL or missing references)
//IL_003d: Invalid comparison between Unknown and I4
//IL_0052: Unknown result type (might be due to invalid IL or missing references)
PermissaoUsuario val = (PermissaoUsuario)value;
Visibility val2 = (Visibility)0;
if (val.Tela != tela)
{
tela = val.Tela;
column = 1;
}
TipoTela val3 = val.Tela;
if ((int)val3 == 10)
{
goto IL_0055;
}
if (val3 - 12 > 1)
{
if ((int)val3 == 18)
{
goto IL_0055;
}
}
else if (column == 1 || column == 3)
{
val2 = (Visibility)1;
}
goto IL_005f;
IL_0055:
if (column == 3)
{
val2 = (Visibility)1;
}
goto IL_005f;
IL_005f:
column++;
return val2;
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
return null;
}
public override object ProvideValue(IServiceProvider serviceProvider)
{
return this;
}
}
|