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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
|
using System;
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using System.Windows.Markup;
using System.Windows.Media;
using System.Windows.Shapes;
using Gestor.Application.ViewModels.Financeiro;
using Gestor.Application.Views.Generic;
using Gestor.Model.Domain.Financeiro;
namespace Gestor.Application.Views.Financeiro;
public class InfoExtratoView : BaseUserControl, IComponentConnector
{
private bool _buttonClickable;
private bool _contentLoaded;
public InfoExtratoViewModel ViewModel { get; set; }
public InfoExtratoView(Saldo saldo, bool telaBancos = false)
{
ViewModel = new InfoExtratoViewModel(telaBancos);
((FrameworkElement)this).DataContext = ViewModel;
ViewModel.SelectedSaldo = saldo;
InitializeComponent();
}
private void TopControls_OnMouseLeftButtonDown(object sender, MouseButtonEventArgs e)
{
//IL_0008: Unknown result type (might be due to invalid IL or missing references)
//IL_000e: Unknown result type (might be due to invalid IL or missing references)
//IL_0030: Unknown result type (might be due to invalid IL or missing references)
//IL_0035: Unknown result type (might be due to invalid IL or missing references)
//IL_0024: Unknown result type (might be due to invalid IL or missing references)
//IL_0029: Unknown result type (might be due to invalid IL or missing references)
//IL_003f: Expected O, but got Unknown
_buttonClickable = true;
((Panel)(Grid)sender).Background = (Brush)((((FrameworkElement)(Grid)sender).Name == "CloseButton") ? new SolidColorBrush(Colors.Red) : new SolidColorBrush(Colors.DimGray));
}
private void TopControls_OnMouseLeftButtonUp(object sender, MouseButtonEventArgs e)
{
//IL_000f: Unknown result type (might be due to invalid IL or missing references)
if (_buttonClickable)
{
((object)this).GetType().GetMethod(((FrameworkElement)(Grid)sender).Name + "_Click")?.Invoke(this, null);
}
}
private static void TopControls_OnMouseEnter(object sender, MouseEventArgs e)
{
//IL_0001: Unknown result type (might be due to invalid IL or missing references)
//IL_0007: Unknown result type (might be due to invalid IL or missing references)
//IL_0029: 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_001d: Unknown result type (might be due to invalid IL or missing references)
//IL_0022: Unknown result type (might be due to invalid IL or missing references)
//IL_0038: Expected O, but got Unknown
//IL_0039: Unknown result type (might be due to invalid IL or missing references)
//IL_0044: Expected O, but got Unknown
//IL_004e: Unknown result type (might be due to invalid IL or missing references)
//IL_0053: Unknown result type (might be due to invalid IL or missing references)
//IL_005d: Expected O, but got Unknown
((Panel)(Grid)sender).Background = (Brush)((((FrameworkElement)(Grid)sender).Name == "CloseButton") ? new SolidColorBrush(Colors.IndianRed) : new SolidColorBrush(Colors.Gray));
DependencyObject child = VisualTreeHelper.GetChild((DependencyObject)(Grid)sender, 0);
Path val = (Path)(object)((child is Path) ? child : null);
if (val != null)
{
((Shape)val).Stroke = (Brush)new SolidColorBrush(Colors.White);
}
}
private void TopControls_OnMouseLeave(object sender, MouseEventArgs e)
{
//IL_0008: Unknown result type (might be due to invalid IL or missing references)
//IL_000d: Unknown result type (might be due to invalid IL or missing references)
//IL_0012: Unknown result type (might be due to invalid IL or missing references)
//IL_001c: Expected O, but got Unknown
//IL_001d: Unknown result type (might be due to invalid IL or missing references)
//IL_0028: Expected O, but got Unknown
//IL_0032: Unknown result type (might be due to invalid IL or missing references)
//IL_0037: Unknown result type (might be due to invalid IL or missing references)
//IL_0041: Expected O, but got Unknown
_buttonClickable = false;
((Panel)(Grid)sender).Background = (Brush)new SolidColorBrush(Colors.Transparent);
DependencyObject child = VisualTreeHelper.GetChild((DependencyObject)(Grid)sender, 0);
Path val = (Path)(object)((child is Path) ? child : null);
if (val != null)
{
((Shape)val).Stroke = (Brush)new SolidColorBrush(Colors.White);
}
}
private async void Salvar_OnClick(object sender, RoutedEventArgs e)
{
ViewModel.Loading(isLoading: true);
List<KeyValuePair<string, string>> list = await ViewModel.Salvar();
bool num = list == null || list.Count == 0;
ViewModel.Loading(isLoading: false);
if (!num)
{
await ViewModel.ShowMessage(list, ViewModel.ErroCamposInvalidos, "OK");
}
}
[DebuggerNonUserCode]
[GeneratedCode("PresentationBuildTasks", "4.0.0.0")]
public void InitializeComponent()
{
if (!_contentLoaded)
{
_contentLoaded = true;
Uri uri = new Uri("/Gestor.Application;component/views/financeiro/infoextratoview.xaml", UriKind.Relative);
Application.LoadComponent((object)this, uri);
}
}
[DebuggerNonUserCode]
[GeneratedCode("PresentationBuildTasks", "4.0.0.0")]
internal Delegate _CreateDelegate(Type delegateType, string handler)
{
return Delegate.CreateDelegate(delegateType, this, handler);
}
[DebuggerNonUserCode]
[GeneratedCode("PresentationBuildTasks", "4.0.0.0")]
[EditorBrowsable(EditorBrowsableState.Never)]
void IComponentConnector.Connect(int connectionId, object target)
{
//IL_0005: Unknown result type (might be due to invalid IL or missing references)
//IL_0011: Unknown result type (might be due to invalid IL or missing references)
//IL_001b: Expected O, but got Unknown
if (connectionId == 1)
{
((MenuItem)target).Click += new RoutedEventHandler(Salvar_OnClick);
}
else
{
_contentLoaded = true;
}
}
}
|