summaryrefslogtreecommitdiff
path: root/Decompiler/Gestor.Application.Views.Financeiro/FinanceiroView.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Decompiler/Gestor.Application.Views.Financeiro/FinanceiroView.cs')
-rw-r--r--Decompiler/Gestor.Application.Views.Financeiro/FinanceiroView.cs1548
1 files changed, 1548 insertions, 0 deletions
diff --git a/Decompiler/Gestor.Application.Views.Financeiro/FinanceiroView.cs b/Decompiler/Gestor.Application.Views.Financeiro/FinanceiroView.cs
new file mode 100644
index 0000000..e2499cf
--- /dev/null
+++ b/Decompiler/Gestor.Application.Views.Financeiro/FinanceiroView.cs
@@ -0,0 +1,1548 @@
+using System;
+using System.CodeDom.Compiler;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.ComponentModel;
+using System.Diagnostics;
+using System.Linq;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Controls.Primitives;
+using System.Windows.Data;
+using System.Windows.Input;
+using System.Windows.Markup;
+using Gestor.Application.Actions;
+using Gestor.Application.Drawers;
+using Gestor.Application.Helpers;
+using Gestor.Application.Servicos;
+using Gestor.Application.ViewModels.Financeiro;
+using Gestor.Application.Views.Generic;
+using Gestor.Common.Validation;
+using Gestor.Model.Common;
+using Gestor.Model.Domain.Financeiro;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Domain.Relatorios;
+using MaterialDesignThemes.Wpf;
+using Xceed.Wpf.AvalonDock.Controls;
+
+namespace Gestor.Application.Views.Financeiro;
+
+public class FinanceiroView : BaseUserControl, IComponentConnector, IStyleConnector
+{
+ private bool _selecionando;
+
+ private List<ListSortDirection?> _sortDirections;
+
+ private List<SortDescription> _sortDescriptions;
+
+ internal AutoCompleteBox AutoCompleteFornecedor;
+
+ internal MenuItem MenuFiltros;
+
+ internal Grid GridFiltros;
+
+ internal DataGrid LancamentoGrid;
+
+ internal AutoCompleteBox AutoCompleteFornecedorInclusao;
+
+ private bool _contentLoaded;
+
+ public FinanceiroViewModel ViewModel { get; set; }
+
+ private string OriginalValue { get; set; }
+
+ private TipoPagamento? tipoPagamento { get; set; }
+
+ public FinanceiroView()
+ {
+ ((FrameworkElement)this).Tag = "CONSULTA DE FINANÇAS";
+ ViewModel = new FinanceiroViewModel();
+ ((FrameworkElement)this).DataContext = ViewModel;
+ InitializeComponent();
+ Gestor.Application.Actions.Actions.SortLancamentos = (Action)Delegate.Combine(Gestor.Application.Actions.Actions.SortLancamentos, new Action(SortLancamentos));
+ Gestor.Application.Actions.Actions.SaveSortLancamentos = (Action)Delegate.Combine(Gestor.Application.Actions.Actions.SaveSortLancamentos, new Action(SaveSortLancamentos));
+ }
+
+ private async void Buscar_OnClick(object sender, RoutedEventArgs e)
+ {
+ ViewModel.Loading(isLoading: true);
+ await ViewModel.Buscar();
+ ViewModel.Loading(isLoading: false);
+ }
+
+ private void AutoCompleteFornecedor_OnPopulating(object sender, PopulatingEventArgs e)
+ {
+ if (e.Parameter.Length < 3)
+ {
+ return;
+ }
+ e.Cancel = true;
+ ViewModel.BuscarFornecedor(ValidationHelper.RemoveDiacritics(e.Parameter.Trim())).ContinueWith(delegate(Task<List<Fornecedor>> searchResult)
+ {
+ //IL_000f: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0014: Unknown result type (might be due to invalid IL or missing references)
+ if (searchResult.Result != null)
+ {
+ AutoCompleteBox val = (AutoCompleteBox)sender;
+ val.ItemsSource = searchResult.Result;
+ val.PopulateComplete();
+ }
+ }, TaskScheduler.FromCurrentSynchronizationContext());
+ }
+
+ private void AutoCompleteFornecedorAtivo_OnPopulating(object sender, PopulatingEventArgs e)
+ {
+ if (e.Parameter.Length < 3)
+ {
+ return;
+ }
+ e.Cancel = true;
+ ViewModel.BuscarFornecedorAtivo(ValidationHelper.RemoveDiacritics(e.Parameter.Trim())).ContinueWith(delegate(Task<List<Fornecedor>> searchResult)
+ {
+ //IL_000f: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0014: Unknown result type (might be due to invalid IL or missing references)
+ if (searchResult.Result != null)
+ {
+ AutoCompleteBox val = (AutoCompleteBox)sender;
+ val.ItemsSource = searchResult.Result;
+ val.PopulateComplete();
+ }
+ }, TaskScheduler.FromCurrentSynchronizationContext());
+ }
+
+ private void AutoCompleteLancamento_OnPopulating(object sender, PopulatingEventArgs e)
+ {
+ if (e.Parameter.Length < 3)
+ {
+ return;
+ }
+ e.Cancel = true;
+ ViewModel.FiltrarLancamento(ValidationHelper.RemoveDiacritics(e.Parameter.Trim())).ContinueWith(delegate(Task<List<Lancamento>> searchResult)
+ {
+ //IL_000f: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0014: Unknown result type (might be due to invalid IL or missing references)
+ if (searchResult.Result != null)
+ {
+ AutoCompleteBox val = (AutoCompleteBox)sender;
+ val.ItemsSource = searchResult.Result;
+ val.PopulateComplete();
+ }
+ }, TaskScheduler.FromCurrentSynchronizationContext());
+ }
+
+ private void AutoCompleteLancamento_OnTextChanged(object sender, RoutedEventArgs e)
+ {
+ //IL_0001: Unknown result type (might be due to invalid IL or missing references)
+ if (string.IsNullOrWhiteSpace(((AutoCompleteBox)sender).Text))
+ {
+ ViewModel.Filtrar("");
+ }
+ }
+
+ private void TipoFiltrosBox_OnSelectionChanged(object sender, SelectionChangedEventArgs e)
+ {
+ //IL_0001: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0007: Expected O, but got Unknown
+ //IL_0098: Unknown result type (might be due to invalid IL or missing references)
+ //IL_009d: Unknown result type (might be due to invalid IL or missing references)
+ //IL_009e: Unknown result type (might be due to invalid IL or missing references)
+ //IL_00a0: Unknown result type (might be due to invalid IL or missing references)
+ //IL_00ba: Expected I4, but got Unknown
+ ComboBox val = (ComboBox)sender;
+ if (val != null && ((Selector)val).SelectedItem != null)
+ {
+ ViewModel.IsvisibleStatus = (Visibility)0;
+ ViewModel.IsVisibleData = (Visibility)2;
+ ViewModel.IsVisibleFornecedor = (Visibility)2;
+ ViewModel.IsVisiblePersonalizado = (Visibility)2;
+ ViewModel.IsVisibleFiltros = (Visibility)0;
+ ViewModel.LimparFiltros();
+ ViewModel.SelectedFornecedor = null;
+ if (AutoCompleteFornecedor != null)
+ {
+ AutoCompleteFornecedor.Text = string.Empty;
+ }
+ ViewModel.DropDownHeight = 0.0;
+ FiltroLancamento val2 = (FiltroLancamento)((Selector)val).SelectedItem;
+ switch (val2 - 1)
+ {
+ default:
+ ViewModel.IsVisibleData = (Visibility)0;
+ break;
+ case 0:
+ case 1:
+ ViewModel.IsvisibleStatus = (Visibility)2;
+ ViewModel.IsVisibleData = (Visibility)0;
+ break;
+ case 2:
+ ViewModel.IsVisibleFornecedor = (Visibility)0;
+ break;
+ case 4:
+ ViewModel.IsVisiblePersonalizado = (Visibility)0;
+ ViewModel.IsVisibleFiltros = (Visibility)2;
+ ((UIElement)GridFiltros).Visibility = (Visibility)2;
+ ((HeaderedItemsControl)MenuFiltros).Header = "MOSTRAR FILTROS";
+ ViewModel.IsVisibleData = (Visibility)0;
+ ViewModel.DropDownHeight = 200.0;
+ break;
+ }
+ }
+ }
+
+ private async void DataGrid_OnCellEditEnding(object sender, DataGridCellEditEndingEventArgs e)
+ {
+ if (!(e.EditingElement is TextBox))
+ {
+ return;
+ }
+ FrameworkElement editingElement = e.EditingElement;
+ TextBox box = (TextBox)(object)((editingElement is TextBox) ? editingElement : null);
+ bool atualizar = true;
+ string stringFormat = e.Column.ClipboardContentBinding.StringFormat;
+ if (!(stringFormat == "d"))
+ {
+ if (!(stringFormat == "c"))
+ {
+ if (string.IsNullOrEmpty((box != null) ? box.Text : null))
+ {
+ return;
+ }
+ switch (e.Column.SortMemberPath)
+ {
+ case "Documento":
+ if (box.Text.Length <= 50)
+ {
+ if (OriginalValue == box.Text)
+ {
+ break;
+ }
+ if (!(await ViewModel.ShowMessage("DESEJA REPLICAR PARA OS DEMAIS LANÇAMENTOS FILTRADOS?", "SIM", "NÃO")))
+ {
+ atualizar = false;
+ }
+ foreach (Lancamento item in ((IEnumerable)((ItemsControl)LancamentoGrid).Items).Cast<Lancamento>())
+ {
+ if (((DomainBase)item).Id == ((DomainBase)(Lancamento)((Selector)LancamentoGrid).SelectedItem).Id || atualizar)
+ {
+ item.Documento = box.Text;
+ }
+ }
+ ((CollectionView)((ItemsControl)LancamentoGrid).Items).Refresh();
+ }
+ else
+ {
+ box.Text = string.Empty;
+ await ViewModel.ShowMessage("LIMITE DE CARACTERES: 50");
+ }
+ break;
+ case "Competencia":
+ if (box.Text.Length <= 7)
+ {
+ box.Text = ValidationHelper.FormatCompetencia(box.Text);
+ break;
+ }
+ box.Text = "";
+ await ViewModel.ShowMessage("LIMITE DE CARACTERES: 7");
+ break;
+ case "Complemento":
+ if (box.Text.Length > 15)
+ {
+ box.Text = "";
+ await ViewModel.ShowMessage("LIMITE DE CARACTERES: 15");
+ }
+ break;
+ }
+ }
+ else if (box != null)
+ {
+ box.Text = ValidationHelper.FormatCurrency(box.Text);
+ }
+ }
+ else
+ {
+ if (box == null)
+ {
+ return;
+ }
+ box.Text = (string.IsNullOrEmpty(box.Text) ? null : ValidationHelper.FormatDate(box.Text));
+ if (e.Column.SortMemberPath == "Vencimento" && string.IsNullOrWhiteSpace(box.Text))
+ {
+ box.Text = ViewModel.SelectedLancamento.Vencimento.ToShortDateString();
+ await ViewModel.ShowMessage("VENCIMENTO NÃO PODE SER EM BRANCO");
+ return;
+ }
+ if (!string.IsNullOrWhiteSpace(box.Text) && !ValidationHelper.ValidateDate(box.Text))
+ {
+ box.Text = ((e.Column.SortMemberPath == "Vencimento") ? ViewModel.SelectedLancamento.Vencimento.ToShortDateString() : null);
+ await ViewModel.ShowMessage("DATA INVÁLIDA");
+ return;
+ }
+ string sortMemberPath = e.Column.SortMemberPath;
+ if (!(sortMemberPath == "Baixa"))
+ {
+ if (!(sortMemberPath == "Pagamento") || OriginalValue == box.Text)
+ {
+ return;
+ }
+ if (!(await ViewModel.ShowMessage("DESEJA REPLICAR PARA OS DEMAIS LANÇAMENTOS FILTRADOS?", "SIM", "NÃO")))
+ {
+ atualizar = false;
+ }
+ foreach (Lancamento item2 in ((IEnumerable)((ItemsControl)LancamentoGrid).Items).Cast<Lancamento>())
+ {
+ if (((DomainBase)item2).Id == ((DomainBase)(Lancamento)((Selector)LancamentoGrid).SelectedItem).Id || atualizar)
+ {
+ item2.Pagamento = (string.IsNullOrEmpty(box.Text) ? null : new DateTime?(DateTime.Parse(box.Text)));
+ }
+ }
+ ((CollectionView)((ItemsControl)LancamentoGrid).Items).Refresh();
+ }
+ else
+ {
+ if (OriginalValue == box.Text)
+ {
+ return;
+ }
+ if (!(await ViewModel.ShowMessage("DESEJA REPLICAR PARA OS DEMAIS LANÇAMENTOS FILTRADOS?", "SIM", "NÃO")))
+ {
+ atualizar = false;
+ }
+ foreach (Lancamento item3 in ((IEnumerable)((ItemsControl)LancamentoGrid).Items).Cast<Lancamento>())
+ {
+ if (((DomainBase)item3).Id == ((DomainBase)(Lancamento)((Selector)LancamentoGrid).SelectedItem).Id || atualizar)
+ {
+ item3.Baixa = (string.IsNullOrEmpty(box.Text) ? null : new DateTime?(DateTime.Parse(box.Text)));
+ }
+ }
+ ((CollectionView)((ItemsControl)LancamentoGrid).Items).Refresh();
+ }
+ }
+ }
+
+ private void CheckBox_Checked(object sender, RoutedEventArgs e)
+ {
+ //IL_0011: Unknown result type (might be due to invalid IL or missing references)
+ if (!_selecionando)
+ {
+ _selecionando = true;
+ ((ToggleButton)(CheckBox)sender).IsChecked = false;
+ ViewModel.SelecionarTodos();
+ _selecionando = false;
+ }
+ }
+
+ private void CheckBoxFiltros_Checked(object sender, RoutedEventArgs e)
+ {
+ //IL_0001: Unknown result type (might be due to invalid IL or missing references)
+ switch (((FrameworkElement)(CheckBox)sender).Name)
+ {
+ case "GridPlanos":
+ ViewModel.PlanosFiltro.ForEach(delegate(Planos x)
+ {
+ x.Selecionado = !x.Selecionado;
+ });
+ ViewModel.PlanosFiltro = new List<Planos>(ViewModel.PlanosFiltro);
+ break;
+ case "GridCentro":
+ ViewModel.CentroFiltro.ForEach(delegate(Centro x)
+ {
+ x.Selecionado = !x.Selecionado;
+ });
+ ViewModel.CentroFiltro = new List<Centro>(ViewModel.CentroFiltro);
+ break;
+ case "GridConta":
+ ViewModel.ContaFiltro.ForEach(delegate(BancosContas x)
+ {
+ x.Selecionado = !x.Selecionado;
+ });
+ ViewModel.ContaFiltro = new List<BancosContas>(ViewModel.ContaFiltro);
+ break;
+ }
+ }
+
+ private async void Imprimir_OnClick(object sender, RoutedEventArgs e)
+ {
+ List<Lancamento> relatorio = ((IEnumerable)((ItemsControl)LancamentoGrid).Items).Cast<Lancamento>().ToList();
+ if (await ViewModel.ShowMessage("DESEJA CONTINUAR COM A IMPRESSÃO?", "SIM", "NÃO"))
+ {
+ bool posicao = await ViewModel.ShowMessage("EM QUAL POSIÇÂO DESEJA IMPRIMIR?", "PAISAGEM (horizontal)", "RETRATO (vertical)");
+ await ViewModel.Print(relatorio, posicao);
+ }
+ }
+
+ private async void ExportarExcel_OnClick(object sender, RoutedEventArgs e)
+ {
+ List<Lancamento> relatorioGrid = ((IEnumerable)((ItemsControl)LancamentoGrid).Items).Cast<Lancamento>().ToList();
+ await ViewModel.GerarExcel(relatorioGrid);
+ }
+
+ private async void AbrirLancamento(Lancamento lancamento)
+ {
+ if (ViewModel.SelectedLancamento == null)
+ {
+ await ViewModel.ShowMessage("SELECIONE UM LANCAMENTO ANTES DE PROSSEGUIR");
+ }
+ else if (((DomainBase)lancamento).Id <= 0 || lancamento.Controle.Plano != null)
+ {
+ ViewModel.SelectedLancamento = lancamento;
+ ViewModel.VencimentoAlterado = false;
+ ViewModel.VencimentoAnt = ViewModel.SelectedLancamento.Vencimento;
+ if (((DomainBase)lancamento).Id > 0)
+ {
+ ViewModel.FiltrarLancamento(((DomainBase)lancamento).Id);
+ }
+ else
+ {
+ ViewModel.FiltrarLancamento(lancamento);
+ }
+ ViewModel.Alterando = (Visibility)0;
+ ViewModel.BuscaHabilitada = false;
+ ValidarLancamento();
+ }
+ }
+
+ private void ValidarLancamento()
+ {
+ if (ViewModel.SelectedLancamento != null)
+ {
+ List<KeyValuePair<string, string>> errorMessages = ViewModel.SelectedLancamento.Validate();
+ ((DependencyObject)(object)this).ValidateFields(errorMessages, focusField: false);
+ }
+ }
+
+ private void Incluir_OnClick(object sender, RoutedEventArgs e)
+ {
+ ViewModel.IncluirLancamento();
+ ViewModel.IdLancamento = 0L;
+ ValidarLancamento();
+ }
+
+ private async void SalvarLancamento_OnClick(object sender, RoutedEventArgs e)
+ {
+ await Salvar(fechar: true);
+ }
+
+ private async Task Salvar(bool fechar)
+ {
+ IInputElement focusedElement = Keyboard.FocusedElement;
+ DatePickerTextBox val = (DatePickerTextBox)(object)((focusedElement is DatePickerTextBox) ? focusedElement : null);
+ if (val != null)
+ {
+ ((DatePicker)((FrameworkElement)val).TemplatedParent).SelectedDate = ValidationHelper.ToDateTime(ValidationHelper.FormatDate(((TextBox)val).Text));
+ if (((DatePicker)((FrameworkElement)val).TemplatedParent).SelectedDate.ToString() == "01/01/0001 00:00:00")
+ {
+ ((DatePicker)((FrameworkElement)val).TemplatedParent).SelectedDate = null;
+ }
+ }
+ bool flag = ViewModel.Importando && ViewModel.Parcelas > 1;
+ if (flag)
+ {
+ flag = !(await ViewModel.ShowMessage($"SERÁ CRIADO COM {ViewModel.Parcelas} PARCELAS, INICIADO POR ESSE LANÇAMENTO, DESEJA PROSSEGUIR?", "SIM", "NÃO"));
+ }
+ if (flag)
+ {
+ return;
+ }
+ ViewModel.Loading(isLoading: true);
+ if (ViewModel.Importando)
+ {
+ ViewModel.BindImportando();
+ List<KeyValuePair<string, string>> list = ViewModel.SelectedLancamento.Validate() ?? new List<KeyValuePair<string, string>>();
+ if (list.Count > 0)
+ {
+ ViewModel.Loading(isLoading: false);
+ await ViewModel.ShowMessage(list, ViewModel.ErroCamposInvalidos, "OK");
+ return;
+ }
+ ViewModel.LancamentosFiltrados = ViewModel.Lancamentos;
+ AutoCompleteFornecedorInclusao.Text = string.Empty;
+ ViewModel.Alterando = (Visibility)2;
+ ViewModel.BuscaHabilitada = true;
+ ViewModel.Loading(isLoading: false);
+ return;
+ }
+ ViewModel.Bind();
+ List<KeyValuePair<string, string>> list2 = await ViewModel.Salvar();
+ bool num = list2 == null || list2.Count == 0;
+ ViewModel.Loading(isLoading: false);
+ if (num)
+ {
+ if (fechar)
+ {
+ AutoCompleteFornecedorInclusao.Text = string.Empty;
+ ViewModel.Alterando = (Visibility)2;
+ ViewModel.BuscaHabilitada = true;
+ await ViewModel.Buscar();
+ return;
+ }
+ Fornecedor fornecedorInclusao = ViewModel.FornecedorInclusao;
+ string historico = ViewModel.Historico;
+ string documento = ViewModel.Documento;
+ string competencia = ViewModel.Competencia;
+ string complemento = ViewModel.Complemento;
+ Planos plano = ViewModel.Plano;
+ Centro centro = ViewModel.Centro;
+ BancosContas conta = ViewModel.Conta;
+ Sinal sinal = ViewModel.Sinal;
+ int parcelas = ViewModel.Parcelas;
+ int parcela = ViewModel.Parcela;
+ DateTime vencimento = ViewModel.Vencimento;
+ decimal valor = ViewModel.Valor;
+ DateTime? baixa = ViewModel.Baixa;
+ decimal? valorPago = ViewModel.ValorPago;
+ DateTime? pagamento = ViewModel.Pagamento;
+ TipoPagamento val2 = ViewModel.TipoPagamento;
+ string observacao = ViewModel.Observacao;
+ ViewModel.FornecedorInclusao = fornecedorInclusao;
+ ViewModel.Historico = historico;
+ ViewModel.Documento = documento;
+ ViewModel.Competencia = competencia;
+ ViewModel.Complemento = complemento;
+ ViewModel.Plano = plano;
+ ViewModel.Centro = centro;
+ ViewModel.Conta = conta;
+ ViewModel.Sinal = sinal;
+ ViewModel.Parcelas = parcelas;
+ ViewModel.Parcela = parcela;
+ ViewModel.Vencimento = vencimento;
+ ViewModel.Valor = valor;
+ ViewModel.Baixa = baixa;
+ ViewModel.ValorPago = valorPago;
+ ViewModel.Pagamento = pagamento;
+ ViewModel.TipoPagamento = val2;
+ ViewModel.Observacao = observacao;
+ ViewModel.EnableIncluirNovo = true;
+ }
+ else
+ {
+ await ViewModel.ShowMessage(list2, ViewModel.ErroCamposInvalidos, "OK");
+ }
+ }
+
+ private void CancelarAlteracao_OnClick(object sender, RoutedEventArgs e)
+ {
+ AutoCompleteFornecedorInclusao.Text = string.Empty;
+ ViewModel.Alterando = (Visibility)2;
+ ViewModel.BuscaHabilitada = true;
+ ViewModel.CancelarAlteracao();
+ ViewModel.EnableIncluirNovo = false;
+ }
+
+ private void AutoCompleteBoxDetalhe_Populating(object sender, PopulatingEventArgs e)
+ {
+ if (e.Parameter.Length < 3)
+ {
+ return;
+ }
+ e.Cancel = true;
+ ViewModel.FiltroPersonalizadoTask(ValidationHelper.RemoveDiacritics(e.Parameter.Trim())).ContinueWith(delegate(Task<List<FiltroPersonalizado>> searchResult)
+ {
+ //IL_000f: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0014: Unknown result type (might be due to invalid IL or missing references)
+ if (searchResult.Result != null)
+ {
+ AutoCompleteBox val = (AutoCompleteBox)sender;
+ val.ItemsSource = searchResult.Result;
+ val.PopulateComplete();
+ }
+ }, TaskScheduler.FromCurrentSynchronizationContext());
+ }
+
+ private void FiltroDetalhes_OnSelectionChanged(object sender, SelectionChangedEventArgs e)
+ {
+ //IL_0001: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0007: Expected O, but got Unknown
+ //IL_0028: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0032: Expected O, but got Unknown
+ AutoCompleteBox val = (AutoCompleteBox)sender;
+ if (val != null && val.SelectedItem != null && val.IsDropDownOpen)
+ {
+ ViewModel.AdicionarFiltro((FiltroPersonalizado)val.SelectedItem);
+ val.Text = string.Empty;
+ }
+ }
+
+ private void ExcluirFiltro_onDeleteClick(object sender, RoutedEventArgs e)
+ {
+ //IL_002e: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0034: Expected O, but got Unknown
+ Chip val = (Chip)((sender is Chip) ? sender : null);
+ if (val != null)
+ {
+ ListBox val2 = Extentions.FindVisualAncestor<ListBox>((DependencyObject)(object)val);
+ FiltroPersonalizado val3 = (FiltroPersonalizado)((ItemsControl)val2).Items[((CollectionView)((ItemsControl)val2).Items).IndexOf(((FrameworkElement)val).DataContext)];
+ if (val3 != null)
+ {
+ ViewModel.ExcluirFiltro(val3);
+ }
+ }
+ }
+
+ private void LimparFiltros_OnClick(object sender, RoutedEventArgs e)
+ {
+ ViewModel.LimparFiltros();
+ ViewModel.FiltrarPersonalizado();
+ }
+
+ private void EsconderFiltros_OnClick(object sender, RoutedEventArgs e)
+ {
+ ViewModel.VisibleFiltros = (Visibility)2;
+ ViewModel.VisibleOlho = (Visibility)0;
+ }
+
+ private void MostrarFiltros_OnClick(object sender, RoutedEventArgs e)
+ {
+ ViewModel.VisibleFiltros = (Visibility)0;
+ ViewModel.VisibleOlho = (Visibility)2;
+ }
+
+ private async void ExcluirRange_OnClick(object sender, RoutedEventArgs e)
+ {
+ await ViewModel.ExcluirRange();
+ }
+
+ private async void Excluir_OnClick(object sender, RoutedEventArgs e)
+ {
+ await ViewModel.Excluir();
+ ViewModel.Alterando = (Visibility)2;
+ ViewModel.BuscaHabilitada = true;
+ ViewModel.CancelarAlteracao();
+ }
+
+ private async void ArquivoDigital_OnClick(object sender, RoutedEventArgs e)
+ {
+ if (!new PermissaoArquivoDigitalServico().BuscarPermissao(Recursos.Usuario, (TipoArquivoDigital)9).Consultar)
+ {
+ await ViewModel.ShowMessage("VOCÊ NÃO POSSUI PERMISSÃO PARA ACESSAR\nARQUIVO DIGITAL DE " + ValidationHelper.GetDescription((Enum)(object)(TipoArquivoDigital)9) + ".");
+ return;
+ }
+ FiltroArquivoDigital filtro = new FiltroArquivoDigital
+ {
+ Id = ((DomainBase)ViewModel.SelectedLancamento).Id,
+ Tipo = (TipoArquivoDigital)9,
+ Parente = ViewModel.SelectedLancamento
+ };
+ ViewModel.ShowDrawer(new ArquivoDigitalDrawer(filtro), 0, close: false);
+ }
+
+ private void Saldos_OnMouseDoubleClick(object sender, MouseButtonEventArgs e)
+ {
+ //IL_003a: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0040: Invalid comparison between Unknown and I4
+ //IL_0043: Unknown result type (might be due to invalid IL or missing references)
+ if (ViewModel.SelectedSaldo != null)
+ {
+ string text = "INFORMAÇÕES DO EXTRATO - " + ViewModel.SelectedSaldo.Conta.Descricao;
+ Window val = Funcoes.IsHosterOpen(text);
+ if (val != null)
+ {
+ val.WindowState = (WindowState)(((int)val.WindowState == 1) ? 2 : ((int)val.WindowState));
+ val.Activate();
+ }
+ else
+ {
+ ((Window)new HosterWindow((ContentControl)(object)new InfoExtratoView(ViewModel.SelectedSaldo), text, 800.0, 450.0, canMaximize: true)).Show();
+ }
+ }
+ }
+
+ private void IncluirParcela_OnClick(object sender, RoutedEventArgs e)
+ {
+ ViewModel.IncluirParcela();
+ ValidarLancamento();
+ }
+
+ private void Alterar_OnClick(object sender, RoutedEventArgs e)
+ {
+ //IL_0001: Unknown result type (might be due to invalid IL or missing references)
+ //IL_000b: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0011: Expected O, but got Unknown
+ Lancamento lancamento = (Lancamento)((FrameworkElement)(Button)sender).DataContext;
+ ViewModel.VisibilityFornecedor = (Visibility)((!ViewModel.Importando) ? 2 : 0);
+ ViewModel.BotaoSalvarVisibility = (Visibility)(ViewModel.Importando ? 2 : 0);
+ AbrirLancamento(lancamento);
+ ViewModel.Loading(isLoading: false);
+ }
+
+ private async void ExcluirBaixaRange_OnClick(object sender, RoutedEventArgs e)
+ {
+ await ViewModel.ExcluirBaixaRange();
+ }
+
+ private async void ExcluirBaixa_OnClick(object sender, RoutedEventArgs e)
+ {
+ await ViewModel.ExcluirBaixa();
+ }
+
+ private async void SalvarRange_OnClick(object sender, RoutedEventArgs e)
+ {
+ await ViewModel.Atualizar(((IEnumerable)((ItemsControl)LancamentoGrid).Items).Cast<Lancamento>().ToList());
+ LancamentoGrid.CommitEdit();
+ LancamentoGrid.CommitEdit();
+ CollectionViewSource.GetDefaultView((object)((ItemsControl)LancamentoGrid).ItemsSource).Refresh();
+ }
+
+ private void TrocarFornecedor_OnClick(object sender, RoutedEventArgs e)
+ {
+ ViewModel.Loading(isLoading: true);
+ AbrirLancamento(ViewModel.SelectedLancamento);
+ ViewModel.VisibilityFornecedor = (Visibility)0;
+ ViewModel.Loading(isLoading: false);
+ }
+
+ private void Sintetizar_OnClick(object sender, RoutedEventArgs e)
+ {
+ ViewModel.Sintetizar();
+ }
+
+ private void ExtratoConta_OnClick(object sender, RoutedEventArgs e)
+ {
+ //IL_0001: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0007: Expected O, but got Unknown
+ //IL_0019: Unknown result type (might be due to invalid IL or missing references)
+ Button val = (Button)sender;
+ if (val != null && ((FrameworkElement)val).DataContext != null)
+ {
+ ((Window)new ExtratoWindow(((DomainBase)((Saldo)((FrameworkElement)val).DataContext).Conta).Id)).Show();
+ }
+ }
+
+ private async void SalvarInclusao_Click(object sender, RoutedEventArgs e)
+ {
+ await Salvar(fechar: false);
+ }
+
+ private async void Transferir_OnClick(object sender, RoutedEventArgs e)
+ {
+ Transferencia transferencia = new Transferencia
+ {
+ Data = Funcoes.GetNetworkTime().Date
+ };
+ while (true)
+ {
+ transferencia = await ViewModel.ShowTransferencia(transferencia);
+ if (transferencia == null)
+ {
+ return;
+ }
+ List<KeyValuePair<string, string>> list = await ViewModel.Salvar(transferencia);
+ bool num = list == null || list.Count == 0;
+ ViewModel.Loading(isLoading: false);
+ if (num)
+ {
+ break;
+ }
+ await ViewModel.ShowMessage(list, ViewModel.ErroCamposInvalidos, "OK");
+ }
+ ViewModel.ToggleSnackBar("TRANSFERÊNCIA SALVA COM SUCESSO.");
+ ViewModel.Alterar(alterar: false);
+ }
+
+ private void AbrirLogEmail_OnClick(object sender, RoutedEventArgs e)
+ {
+ ViewModel.AbrirLogEmail((TipoTela)25, ((DomainBase)ViewModel.SelectedLancamento).Id);
+ }
+
+ private void Unchecked_OnHandler(object sender, RoutedEventArgs e)
+ {
+ //IL_0001: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0007: Expected O, but got Unknown
+ DataGridCell val = (DataGridCell)sender;
+ if (((Selector)LancamentoGrid).SelectedItem != null)
+ {
+ object dataContext = ((FrameworkElement)val).DataContext;
+ Lancamento val2 = (Lancamento)((dataContext is Lancamento) ? dataContext : null);
+ if (val2 != null && val2.Selecionado)
+ {
+ ViewModel.DeSelecionarLancamento(val2);
+ LancamentoGrid.CommitEdit();
+ LancamentoGrid.CommitEdit();
+ CollectionViewSource.GetDefaultView((object)((ItemsControl)LancamentoGrid).ItemsSource).Refresh();
+ }
+ }
+ }
+
+ private void OnChecked_OnHandler(object sender, RoutedEventArgs e)
+ {
+ //IL_0001: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0007: Expected O, but got Unknown
+ DataGridCell val = (DataGridCell)sender;
+ if (((Selector)LancamentoGrid).SelectedItem != null)
+ {
+ object dataContext = ((FrameworkElement)val).DataContext;
+ Lancamento val2 = (Lancamento)((dataContext is Lancamento) ? dataContext : null);
+ if (val2 != null && !val2.Selecionado)
+ {
+ ViewModel.SelecionarLancamento(val2);
+ LancamentoGrid.CommitEdit();
+ LancamentoGrid.CommitEdit();
+ CollectionViewSource.GetDefaultView((object)((ItemsControl)LancamentoGrid).ItemsSource).Refresh();
+ }
+ }
+ }
+
+ public void SaveSortLancamentos()
+ {
+ //IL_006e: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0073: Unknown result type (might be due to invalid IL or missing references)
+ //IL_007a: Unknown result type (might be due to invalid IL or missing references)
+ _sortDirections = new List<ListSortDirection?>();
+ _sortDescriptions = new List<SortDescription>();
+ foreach (DataGridColumn column in LancamentoGrid.Columns)
+ {
+ _sortDirections.Add(column.SortDirection);
+ }
+ foreach (SortDescription item in (Collection<SortDescription>)(object)((CollectionView)((ItemsControl)LancamentoGrid).Items).SortDescriptions)
+ {
+ _sortDescriptions.Add(item);
+ }
+ }
+
+ public void SortLancamentos()
+ {
+ //IL_009b: Unknown result type (might be due to invalid IL or missing references)
+ //IL_00a0: Unknown result type (might be due to invalid IL or missing references)
+ //IL_00b1: Unknown result type (might be due to invalid IL or missing references)
+ if (_sortDirections == null || _sortDirections.Count != LancamentoGrid.Columns.Count)
+ {
+ return;
+ }
+ foreach (DataGridColumn column in LancamentoGrid.Columns)
+ {
+ column.SortDirection = _sortDirections[LancamentoGrid.Columns.IndexOf(column)];
+ }
+ ((Collection<SortDescription>)(object)((CollectionView)((ItemsControl)LancamentoGrid).Items).SortDescriptions).Clear();
+ foreach (SortDescription sortDescription in _sortDescriptions)
+ {
+ ((Collection<SortDescription>)(object)((CollectionView)((ItemsControl)LancamentoGrid).Items).SortDescriptions).Add(sortDescription);
+ }
+ }
+
+ private void LancamentoGrid_OnPreparingCellForEdit(object sender, DataGridPreparingCellForEditEventArgs e)
+ {
+ if (((object)e.Column).GetType().Name != "DataGridTextColumn")
+ {
+ LancamentoGrid.CancelEdit();
+ LancamentoGrid.CancelEdit();
+ }
+ FrameworkElement editingElement = e.EditingElement;
+ TextBox val = (TextBox)(object)((editingElement is TextBox) ? editingElement : null);
+ if (val != null)
+ {
+ OriginalValue = val.Text;
+ }
+ }
+
+ private async void TipoPagamento_OnDropDownClosed(object sender, EventArgs e)
+ {
+ if (tipoPagamento == (TipoPagamento?)(TipoPagamento)((Selector)(ComboBox)sender).SelectedItem)
+ {
+ tipoPagamento = null;
+ }
+ else
+ {
+ if (!(await ViewModel.ShowMessage("DESEJA REPLICAR PARA OS DEMAIS LANÇAMENTOS FILTRADOS?", "SIM", "NÃO")))
+ {
+ return;
+ }
+ tipoPagamento = null;
+ foreach (Lancamento item in ((IEnumerable)((ItemsControl)LancamentoGrid).Items).Cast<Lancamento>())
+ {
+ item.TipoPagamento = (TipoPagamento)((Selector)(ComboBox)sender).SelectedItem;
+ }
+ LancamentoGrid.CommitEdit();
+ LancamentoGrid.CommitEdit();
+ ((CollectionView)((ItemsControl)LancamentoGrid).Items).Refresh();
+ }
+ }
+
+ private void TipoPagamento_DropDownOpened(object sender, EventArgs e)
+ {
+ //IL_0001: 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_0019: Unknown result type (might be due to invalid IL or missing references)
+ if (((Selector)(ComboBox)sender).SelectedItem != null)
+ {
+ tipoPagamento = (TipoPagamento)((Selector)(ComboBox)sender).SelectedItem;
+ }
+ else
+ {
+ tipoPagamento = null;
+ }
+ }
+
+ private async void ImportarOfx_Click(object sender, RoutedEventArgs e)
+ {
+ await ImportarOfx();
+ }
+
+ private async Task ImportarOfx()
+ {
+ if (ViewModel.ContasFiltradas == null || ViewModel.ContasFiltradas.Count == 0)
+ {
+ await ViewModel.ShowMessage("NÃO HÁ CONTAS CADASTRADAS PARA REALIZAR A IMPORTAÇÃO.");
+ return;
+ }
+ BancosContas val = ((ViewModel.ContasFiltradas.Count <= 1) ? ViewModel.ContasFiltradas.First() : (await ViewModel.ShowContas(ViewModel.ContasFiltradas.ToList())));
+ BancosContas val2 = val;
+ if (val2 != null)
+ {
+ ViewModel.Loading(isLoading: true);
+ await ViewModel.ParseOfx(val2);
+ ViewModel.Loading(isLoading: false);
+ }
+ }
+
+ private async void SalvarImportacao_Click(object sender, RoutedEventArgs e)
+ {
+ if (await ViewModel.ShowMessage("DESEJA PROSSEGUIR COM A IMPORTAÇÃO?" + Environment.NewLine + Environment.NewLine + "SOMENTE OS LANÇAMENTOS VÁLIDOS SERÃO ALTERADOS OU INCLUÍDOS", "SIM", "NÃO"))
+ {
+ ViewModel.Loading(isLoading: true);
+ List<Lancamento> list = ViewModel.Lancamentos.Where((Lancamento x) => x.Validate().Count == 0).ToList();
+ if (await ViewModel.SalvarImportacao(list))
+ {
+ ViewModel.Importando = false;
+ }
+ ViewModel.Loading(isLoading: false);
+ }
+ }
+
+ private async void CancelarImportacao_Click(object sender, RoutedEventArgs e)
+ {
+ ViewModel.Loading(isLoading: true);
+ ViewModel.Importando = false;
+ await ViewModel.Buscar();
+ ViewModel.Loading(isLoading: false);
+ }
+
+ private async void BuscarLancamentos_Click(object sender, RoutedEventArgs e)
+ {
+ if (ViewModel.FornecedorInclusao == null || ViewModel.FornecedorInclusao.Id == 0L)
+ {
+ await ViewModel.ShowMessage("É NECESSÁRIO PESQUISAR O FORNECEDOR AO LADO PARA VINCULAR UM LANÇAMENTO A ESSA MOVIMENTAÇÃO.");
+ return;
+ }
+ ViewModel.Loading(isLoading: true);
+ await ViewModel.BuscarLancamentosVinculo();
+ ViewModel.Loading(isLoading: false);
+ await AbrirVinculo();
+ }
+
+ private async Task AbrirVinculo()
+ {
+ if (ViewModel.LancamentosVinculo.Count == 0)
+ {
+ await ViewModel.ShowMessage("NÃO HÁ LANÇAMENTOS CRIADOS PARA O FORNECEDOR SELECIONADO.");
+ return;
+ }
+ Lancamento lancamento = await ViewModel.ShowVinculo(ViewModel);
+ if (lancamento != null)
+ {
+ if (!(await ViewModel.ShowMessage($"DESEJA VINCULAR O LANÇAMENTO {((DomainBase)ViewModel.LancamentoVinculo).Id} A MOVIMENTAÇÃO SELECIONADA?", "SIM", "NÃO")))
+ {
+ await AbrirVinculo();
+ }
+ ViewModel.FeedImportando(lancamento);
+ ViewModel.BindImportando();
+ }
+ }
+
+ private void Pendentes_Click(object sender, RoutedEventArgs e)
+ {
+ ViewModel.SelectedStatusImportacao = (StatusLancamento)0;
+ ViewModel.FiltroImportacao();
+ }
+
+ private void Baixados_Click(object sender, RoutedEventArgs e)
+ {
+ ViewModel.SelectedStatusImportacao = (StatusLancamento)1;
+ ViewModel.FiltroImportacao();
+ }
+
+ private void Todos_Click(object sender, RoutedEventArgs e)
+ {
+ ViewModel.SelectedStatusImportacao = (StatusLancamento)2;
+ ViewModel.FiltroImportacao();
+ }
+
+ private void Filtrar_OnClick(object sender, RoutedEventArgs e)
+ {
+ ViewModel.IsExpanded = !ViewModel.IsExpanded;
+ }
+
+ private void Fechar_OnClick(object sender, RoutedEventArgs e)
+ {
+ ViewModel.IsExpanded = !ViewModel.IsExpanded;
+ }
+
+ private void AdicionarFiltros_OnClick(object sender, RoutedEventArgs e)
+ {
+ ViewModel.LimparFiltros();
+ ViewModel.AdicionarFiltros();
+ ViewModel.IsExpanded = !ViewModel.IsExpanded;
+ }
+
+ private void AbrirLog_OnClick(object sender, RoutedEventArgs e)
+ {
+ ViewModel.AbrirLog((TipoTela)25, ((DomainBase)ViewModel.SelectedLancamento).Id);
+ }
+
+ private void AdicionarFiltro_OnClick(object sender, RoutedEventArgs e)
+ {
+ ViewModel.AdcionarFiltroPersonalizado();
+ }
+
+ private void ExcluirFiltro_OnClick(object sender, RoutedEventArgs e)
+ {
+ //IL_002e: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0034: Expected O, but got Unknown
+ Chip val = (Chip)((sender is Chip) ? sender : null);
+ if (val != null)
+ {
+ ListBox val2 = Extentions.FindVisualAncestor<ListBox>((DependencyObject)(object)val);
+ FiltroPersonalizado val3 = (FiltroPersonalizado)((ItemsControl)val2).Items[((CollectionView)((ItemsControl)val2).Items).IndexOf(((FrameworkElement)val).DataContext)];
+ if (val3 != null)
+ {
+ ViewModel.PersonalizadoSelecionado.Remove(val3);
+ ViewModel.PesquisaPersonalizada();
+ }
+ }
+ }
+
+ private void MostrarFiltros_Click(object sender, RoutedEventArgs e)
+ {
+ //IL_0001: 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_0018: Invalid comparison between Unknown and I4
+ //IL_0029: Unknown result type (might be due to invalid IL or missing references)
+ //IL_002f: Invalid comparison between Unknown and I4
+ MenuItem val = (MenuItem)sender;
+ ((UIElement)GridFiltros).Visibility = (Visibility)(((int)((UIElement)GridFiltros).Visibility != 2) ? 2 : 0);
+ ((HeaderedItemsControl)val).Header = (((int)((UIElement)GridFiltros).Visibility == 2) ? "MOSTRAR FILTROS" : "ESCONDER FILTROS");
+ }
+
+ private new void DatePicker_PreviewKeyDown(object sender, KeyEventArgs e)
+ {
+ //IL_0001: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0007: Invalid comparison between Unknown and I4
+ //IL_000b: Unknown result type (might be due to invalid IL or missing references)
+ if ((int)e.Key == 6)
+ {
+ ((DatePicker)sender).Text = Funcoes.GetNetworkTime().Date.ToString("dd/MM/yyyy");
+ }
+ }
+
+ public new void DatePicker_OnLostKeyboardFocus(object sender, KeyboardFocusChangedEventArgs e)
+ {
+ //IL_0001: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0006: Unknown result type (might be due to invalid IL or missing references)
+ DatePicker val = (DatePicker)sender;
+ val.Text = ValidationHelper.FormatDate(val.Text);
+ }
+
+ [DebuggerNonUserCode]
+ [GeneratedCode("PresentationBuildTasks", "4.0.0.0")]
+ public void InitializeComponent()
+ {
+ if (!_contentLoaded)
+ {
+ _contentLoaded = true;
+ Uri uri = new Uri("/Gestor.Application;component/views/financeiro/financeiroview.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_0102: Unknown result type (might be due to invalid IL or missing references)
+ //IL_010e: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0118: Expected O, but got Unknown
+ //IL_011a: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0126: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0130: Expected O, but got Unknown
+ //IL_0131: Unknown result type (might be due to invalid IL or missing references)
+ //IL_013d: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0147: Expected O, but got Unknown
+ //IL_0148: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0154: Unknown result type (might be due to invalid IL or missing references)
+ //IL_015e: Expected O, but got Unknown
+ //IL_0160: Unknown result type (might be due to invalid IL or missing references)
+ //IL_016c: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0176: Expected O, but got Unknown
+ //IL_0177: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0183: Unknown result type (might be due to invalid IL or missing references)
+ //IL_018d: Expected O, but got Unknown
+ //IL_018e: Unknown result type (might be due to invalid IL or missing references)
+ //IL_019a: Unknown result type (might be due to invalid IL or missing references)
+ //IL_01a4: Expected O, but got Unknown
+ //IL_01a7: Unknown result type (might be due to invalid IL or missing references)
+ //IL_01b1: Expected O, but got Unknown
+ //IL_01be: Unknown result type (might be due to invalid IL or missing references)
+ //IL_01c8: Expected O, but got Unknown
+ //IL_01ca: Unknown result type (might be due to invalid IL or missing references)
+ //IL_01d6: Unknown result type (might be due to invalid IL or missing references)
+ //IL_01e0: Expected O, but got Unknown
+ //IL_01e1: Unknown result type (might be due to invalid IL or missing references)
+ //IL_01ed: Unknown result type (might be due to invalid IL or missing references)
+ //IL_01f7: Expected O, but got Unknown
+ //IL_01f9: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0205: Unknown result type (might be due to invalid IL or missing references)
+ //IL_020f: Expected O, but got Unknown
+ //IL_0212: Unknown result type (might be due to invalid IL or missing references)
+ //IL_021c: Expected O, but got Unknown
+ //IL_0229: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0233: Expected O, but got Unknown
+ //IL_0235: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0241: Unknown result type (might be due to invalid IL or missing references)
+ //IL_024b: Expected O, but got Unknown
+ //IL_024d: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0259: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0263: Expected O, but got Unknown
+ //IL_0265: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0271: Unknown result type (might be due to invalid IL or missing references)
+ //IL_027b: Expected O, but got Unknown
+ //IL_027d: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0289: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0293: Expected O, but got Unknown
+ //IL_0295: Unknown result type (might be due to invalid IL or missing references)
+ //IL_02a1: Unknown result type (might be due to invalid IL or missing references)
+ //IL_02ab: Expected O, but got Unknown
+ //IL_02ad: Unknown result type (might be due to invalid IL or missing references)
+ //IL_02b9: Unknown result type (might be due to invalid IL or missing references)
+ //IL_02c3: Expected O, but got Unknown
+ //IL_02c5: Unknown result type (might be due to invalid IL or missing references)
+ //IL_02d1: Unknown result type (might be due to invalid IL or missing references)
+ //IL_02db: Expected O, but got Unknown
+ //IL_02dd: Unknown result type (might be due to invalid IL or missing references)
+ //IL_02e9: Unknown result type (might be due to invalid IL or missing references)
+ //IL_02f3: Expected O, but got Unknown
+ //IL_02f5: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0301: Unknown result type (might be due to invalid IL or missing references)
+ //IL_030b: Expected O, but got Unknown
+ //IL_030d: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0319: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0323: Expected O, but got Unknown
+ //IL_0325: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0331: Unknown result type (might be due to invalid IL or missing references)
+ //IL_033b: Expected O, but got Unknown
+ //IL_033d: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0349: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0353: Expected O, but got Unknown
+ //IL_0355: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0361: Unknown result type (might be due to invalid IL or missing references)
+ //IL_036b: Expected O, but got Unknown
+ //IL_036d: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0379: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0383: Expected O, but got Unknown
+ //IL_0385: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0391: Unknown result type (might be due to invalid IL or missing references)
+ //IL_039b: Expected O, but got Unknown
+ //IL_039d: Unknown result type (might be due to invalid IL or missing references)
+ //IL_03a9: Unknown result type (might be due to invalid IL or missing references)
+ //IL_03b3: Expected O, but got Unknown
+ //IL_03b5: Unknown result type (might be due to invalid IL or missing references)
+ //IL_03c1: Unknown result type (might be due to invalid IL or missing references)
+ //IL_03cb: Expected O, but got Unknown
+ //IL_03cd: Unknown result type (might be due to invalid IL or missing references)
+ //IL_03d9: Unknown result type (might be due to invalid IL or missing references)
+ //IL_03e3: Expected O, but got Unknown
+ //IL_03e5: Unknown result type (might be due to invalid IL or missing references)
+ //IL_03f1: Unknown result type (might be due to invalid IL or missing references)
+ //IL_03fb: Expected O, but got Unknown
+ //IL_03fd: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0409: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0413: Expected O, but got Unknown
+ //IL_0416: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0420: Expected O, but got Unknown
+ //IL_0422: Unknown result type (might be due to invalid IL or missing references)
+ //IL_042e: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0438: Expected O, but got Unknown
+ //IL_0439: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0445: Unknown result type (might be due to invalid IL or missing references)
+ //IL_044f: Expected O, but got Unknown
+ //IL_0450: Unknown result type (might be due to invalid IL or missing references)
+ //IL_045c: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0466: Expected O, but got Unknown
+ //IL_0468: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0474: Unknown result type (might be due to invalid IL or missing references)
+ //IL_047e: Expected O, but got Unknown
+ //IL_047f: Unknown result type (might be due to invalid IL or missing references)
+ //IL_048b: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0495: Expected O, but got Unknown
+ //IL_0496: Unknown result type (might be due to invalid IL or missing references)
+ //IL_04a2: Unknown result type (might be due to invalid IL or missing references)
+ //IL_04ac: Expected O, but got Unknown
+ //IL_04ae: Unknown result type (might be due to invalid IL or missing references)
+ //IL_04ba: Unknown result type (might be due to invalid IL or missing references)
+ //IL_04c4: Expected O, but got Unknown
+ //IL_04c6: Unknown result type (might be due to invalid IL or missing references)
+ //IL_04d2: Unknown result type (might be due to invalid IL or missing references)
+ //IL_04dc: Expected O, but got Unknown
+ //IL_04de: Unknown result type (might be due to invalid IL or missing references)
+ //IL_04ea: Unknown result type (might be due to invalid IL or missing references)
+ //IL_04f4: Expected O, but got Unknown
+ //IL_04f7: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0501: Expected O, but got Unknown
+ //IL_0531: Unknown result type (might be due to invalid IL or missing references)
+ //IL_053d: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0547: Expected O, but got Unknown
+ //IL_0549: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0555: Unknown result type (might be due to invalid IL or missing references)
+ //IL_055f: Expected O, but got Unknown
+ //IL_0561: Unknown result type (might be due to invalid IL or missing references)
+ //IL_056d: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0577: Expected O, but got Unknown
+ //IL_0579: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0585: Unknown result type (might be due to invalid IL or missing references)
+ //IL_058f: Expected O, but got Unknown
+ //IL_0591: Unknown result type (might be due to invalid IL or missing references)
+ //IL_059d: Unknown result type (might be due to invalid IL or missing references)
+ //IL_05a7: Expected O, but got Unknown
+ //IL_05a9: Unknown result type (might be due to invalid IL or missing references)
+ //IL_05b5: Unknown result type (might be due to invalid IL or missing references)
+ //IL_05bf: Expected O, but got Unknown
+ //IL_05c1: Unknown result type (might be due to invalid IL or missing references)
+ //IL_05cd: Unknown result type (might be due to invalid IL or missing references)
+ //IL_05d7: Expected O, but got Unknown
+ //IL_05d9: Unknown result type (might be due to invalid IL or missing references)
+ //IL_05e5: Unknown result type (might be due to invalid IL or missing references)
+ //IL_05ef: Expected O, but got Unknown
+ //IL_05f1: Unknown result type (might be due to invalid IL or missing references)
+ //IL_05fd: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0607: Expected O, but got Unknown
+ //IL_060a: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0614: Expected O, but got Unknown
+ //IL_0621: Unknown result type (might be due to invalid IL or missing references)
+ //IL_062b: Expected O, but got Unknown
+ //IL_062d: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0639: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0643: Expected O, but got Unknown
+ //IL_0645: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0651: Unknown result type (might be due to invalid IL or missing references)
+ //IL_065b: Expected O, but got Unknown
+ //IL_065c: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0668: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0672: Expected O, but got Unknown
+ //IL_0673: Unknown result type (might be due to invalid IL or missing references)
+ //IL_067f: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0689: Expected O, but got Unknown
+ //IL_068b: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0697: Unknown result type (might be due to invalid IL or missing references)
+ //IL_06a1: Expected O, but got Unknown
+ //IL_06a2: Unknown result type (might be due to invalid IL or missing references)
+ //IL_06ae: Unknown result type (might be due to invalid IL or missing references)
+ //IL_06b8: Expected O, but got Unknown
+ //IL_06b9: Unknown result type (might be due to invalid IL or missing references)
+ //IL_06c5: Unknown result type (might be due to invalid IL or missing references)
+ //IL_06cf: Expected O, but got Unknown
+ //IL_06d1: Unknown result type (might be due to invalid IL or missing references)
+ //IL_06dd: Unknown result type (might be due to invalid IL or missing references)
+ //IL_06e7: Expected O, but got Unknown
+ //IL_06e8: Unknown result type (might be due to invalid IL or missing references)
+ //IL_06f4: Unknown result type (might be due to invalid IL or missing references)
+ //IL_06fe: Expected O, but got Unknown
+ //IL_06ff: Unknown result type (might be due to invalid IL or missing references)
+ //IL_070b: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0715: Expected O, but got Unknown
+ //IL_0717: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0723: Unknown result type (might be due to invalid IL or missing references)
+ //IL_072d: Expected O, but got Unknown
+ //IL_072f: Unknown result type (might be due to invalid IL or missing references)
+ switch (connectionId)
+ {
+ case 1:
+ ((Selector)(ComboBox)target).SelectionChanged += new SelectionChangedEventHandler(TipoFiltrosBox_OnSelectionChanged);
+ break;
+ case 2:
+ ((UIElement)(DatePicker)target).LostKeyboardFocus += new KeyboardFocusChangedEventHandler(DatePicker_OnLostKeyboardFocus);
+ ((UIElement)(DatePicker)target).PreviewKeyDown += new KeyEventHandler(DatePicker_PreviewKeyDown);
+ ((Control)(DatePicker)target).MouseDoubleClick += new MouseButtonEventHandler(base.DataAtual_OnDoubleClick);
+ break;
+ case 3:
+ ((UIElement)(DatePicker)target).LostKeyboardFocus += new KeyboardFocusChangedEventHandler(DatePicker_OnLostKeyboardFocus);
+ ((UIElement)(DatePicker)target).PreviewKeyDown += new KeyEventHandler(DatePicker_PreviewKeyDown);
+ ((Control)(DatePicker)target).MouseDoubleClick += new MouseButtonEventHandler(base.DataAtual_OnDoubleClick);
+ break;
+ case 4:
+ AutoCompleteFornecedor = (AutoCompleteBox)target;
+ AutoCompleteFornecedor.Populating += new PopulatingEventHandler(AutoCompleteFornecedor_OnPopulating);
+ break;
+ case 5:
+ ((AutoCompleteBox)target).Populating += new PopulatingEventHandler(AutoCompleteBoxDetalhe_Populating);
+ ((AutoCompleteBox)target).SelectionChanged += new SelectionChangedEventHandler(FiltroDetalhes_OnSelectionChanged);
+ break;
+ case 6:
+ ((ButtonBase)(Button)target).Click += new RoutedEventHandler(MostrarFiltros_OnClick);
+ break;
+ case 7:
+ MenuFiltros = (MenuItem)target;
+ MenuFiltros.Click += new RoutedEventHandler(MostrarFiltros_Click);
+ break;
+ case 8:
+ ((MenuItem)target).Click += new RoutedEventHandler(Pendentes_Click);
+ break;
+ case 9:
+ ((MenuItem)target).Click += new RoutedEventHandler(Baixados_Click);
+ break;
+ case 10:
+ ((MenuItem)target).Click += new RoutedEventHandler(Todos_Click);
+ break;
+ case 11:
+ ((MenuItem)target).Click += new RoutedEventHandler(SalvarImportacao_Click);
+ break;
+ case 12:
+ ((MenuItem)target).Click += new RoutedEventHandler(CancelarImportacao_Click);
+ break;
+ case 13:
+ ((MenuItem)target).Click += new RoutedEventHandler(Buscar_OnClick);
+ break;
+ case 14:
+ ((MenuItem)target).Click += new RoutedEventHandler(Imprimir_OnClick);
+ break;
+ case 15:
+ ((MenuItem)target).Click += new RoutedEventHandler(ExportarExcel_OnClick);
+ break;
+ case 16:
+ ((MenuItem)target).Click += new RoutedEventHandler(Sintetizar_OnClick);
+ break;
+ case 17:
+ ((MenuItem)target).Click += new RoutedEventHandler(TrocarFornecedor_OnClick);
+ break;
+ case 18:
+ ((MenuItem)target).Click += new RoutedEventHandler(SalvarRange_OnClick);
+ break;
+ case 19:
+ ((MenuItem)target).Click += new RoutedEventHandler(Incluir_OnClick);
+ break;
+ case 20:
+ ((MenuItem)target).Click += new RoutedEventHandler(IncluirParcela_OnClick);
+ break;
+ case 21:
+ ((MenuItem)target).Click += new RoutedEventHandler(ExcluirBaixaRange_OnClick);
+ break;
+ case 22:
+ ((MenuItem)target).Click += new RoutedEventHandler(ExcluirRange_OnClick);
+ break;
+ case 23:
+ ((MenuItem)target).Click += new RoutedEventHandler(Transferir_OnClick);
+ break;
+ case 24:
+ ((MenuItem)target).Click += new RoutedEventHandler(AbrirLog_OnClick);
+ break;
+ case 25:
+ ((MenuItem)target).Click += new RoutedEventHandler(AbrirLogEmail_OnClick);
+ break;
+ case 26:
+ ((MenuItem)target).Click += new RoutedEventHandler(ImportarOfx_Click);
+ break;
+ case 27:
+ ((MenuItem)target).Click += new RoutedEventHandler(Filtrar_OnClick);
+ break;
+ case 28:
+ GridFiltros = (Grid)target;
+ break;
+ case 29:
+ ((UIElement)(DatePicker)target).LostKeyboardFocus += new KeyboardFocusChangedEventHandler(DatePicker_OnLostKeyboardFocus);
+ ((UIElement)(DatePicker)target).PreviewKeyDown += new KeyEventHandler(DatePicker_PreviewKeyDown);
+ ((Control)(DatePicker)target).MouseDoubleClick += new MouseButtonEventHandler(base.DataAtual_OnDoubleClick);
+ break;
+ case 30:
+ ((UIElement)(DatePicker)target).LostKeyboardFocus += new KeyboardFocusChangedEventHandler(DatePicker_OnLostKeyboardFocus);
+ ((UIElement)(DatePicker)target).PreviewKeyDown += new KeyEventHandler(DatePicker_PreviewKeyDown);
+ ((Control)(DatePicker)target).MouseDoubleClick += new MouseButtonEventHandler(base.DataAtual_OnDoubleClick);
+ break;
+ case 31:
+ ((ButtonBase)(Button)target).Click += new RoutedEventHandler(AdicionarFiltro_OnClick);
+ break;
+ case 34:
+ ((ButtonBase)(Button)target).Click += new RoutedEventHandler(LimparFiltros_OnClick);
+ break;
+ case 35:
+ ((ButtonBase)(Button)target).Click += new RoutedEventHandler(EsconderFiltros_OnClick);
+ break;
+ case 36:
+ LancamentoGrid = (DataGrid)target;
+ LancamentoGrid.CellEditEnding += DataGrid_OnCellEditEnding;
+ LancamentoGrid.PreparingCellForEdit += LancamentoGrid_OnPreparingCellForEdit;
+ break;
+ case 42:
+ ((ButtonBase)(Button)target).Click += new RoutedEventHandler(AdicionarFiltros_OnClick);
+ break;
+ case 43:
+ ((ButtonBase)(Button)target).Click += new RoutedEventHandler(Fechar_OnClick);
+ break;
+ case 47:
+ ((MenuItem)target).Click += new RoutedEventHandler(Incluir_OnClick);
+ break;
+ case 48:
+ ((MenuItem)target).Click += new RoutedEventHandler(SalvarInclusao_Click);
+ break;
+ case 49:
+ ((MenuItem)target).Click += new RoutedEventHandler(SalvarLancamento_OnClick);
+ break;
+ case 50:
+ ((MenuItem)target).Click += new RoutedEventHandler(CancelarAlteracao_OnClick);
+ break;
+ case 51:
+ ((MenuItem)target).Click += new RoutedEventHandler(ExcluirBaixa_OnClick);
+ break;
+ case 52:
+ ((MenuItem)target).Click += new RoutedEventHandler(Excluir_OnClick);
+ break;
+ case 53:
+ ((MenuItem)target).Click += new RoutedEventHandler(ArquivoDigital_OnClick);
+ break;
+ case 54:
+ AutoCompleteFornecedorInclusao = (AutoCompleteBox)target;
+ AutoCompleteFornecedorInclusao.Populating += new PopulatingEventHandler(AutoCompleteFornecedorAtivo_OnPopulating);
+ break;
+ case 55:
+ ((MenuItem)target).Click += new RoutedEventHandler(BuscarLancamentos_Click);
+ break;
+ case 56:
+ ((UIElement)(DatePicker)target).LostKeyboardFocus += new KeyboardFocusChangedEventHandler(DatePicker_OnLostKeyboardFocus);
+ ((UIElement)(DatePicker)target).PreviewKeyDown += new KeyEventHandler(DatePicker_PreviewKeyDown);
+ ((Control)(DatePicker)target).MouseDoubleClick += new MouseButtonEventHandler(base.DataAtual_OnDoubleClick);
+ break;
+ case 57:
+ ((UIElement)(DatePicker)target).LostKeyboardFocus += new KeyboardFocusChangedEventHandler(DatePicker_OnLostKeyboardFocus);
+ ((UIElement)(DatePicker)target).PreviewKeyDown += new KeyEventHandler(DatePicker_PreviewKeyDown);
+ ((Control)(DatePicker)target).MouseDoubleClick += new MouseButtonEventHandler(base.DataAtual_OnDoubleClick);
+ break;
+ case 58:
+ ((UIElement)(DatePicker)target).LostKeyboardFocus += new KeyboardFocusChangedEventHandler(DatePicker_OnLostKeyboardFocus);
+ ((UIElement)(DatePicker)target).PreviewKeyDown += new KeyEventHandler(DatePicker_PreviewKeyDown);
+ ((Control)(DatePicker)target).MouseDoubleClick += new MouseButtonEventHandler(base.DataAtual_OnDoubleClick);
+ break;
+ case 59:
+ ((Control)(DataGrid)target).MouseDoubleClick += new MouseButtonEventHandler(Saldos_OnMouseDoubleClick);
+ break;
+ case 61:
+ ((DataGrid)target).CellEditEnding += DataGrid_OnCellEditEnding;
+ break;
+ default:
+ _contentLoaded = true;
+ break;
+ }
+ }
+
+ [DebuggerNonUserCode]
+ [GeneratedCode("PresentationBuildTasks", "4.0.0.0")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ void IStyleConnector.Connect(int connectionId, object target)
+ {
+ //IL_004f: Unknown result type (might be due to invalid IL or missing references)
+ //IL_005b: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0065: Expected O, but got Unknown
+ //IL_0067: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0073: Unknown result type (might be due to invalid IL or missing references)
+ //IL_007d: Expected O, but got Unknown
+ //IL_007f: Unknown result type (might be due to invalid IL or missing references)
+ //IL_008b: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0095: Expected O, but got Unknown
+ //IL_0096: Unknown result type (might be due to invalid IL or missing references)
+ //IL_00a2: Unknown result type (might be due to invalid IL or missing references)
+ //IL_00ac: Expected O, but got Unknown
+ //IL_00ad: Unknown result type (might be due to invalid IL or missing references)
+ //IL_00b3: Expected O, but got Unknown
+ //IL_00c6: Unknown result type (might be due to invalid IL or missing references)
+ //IL_00d0: Expected O, but got Unknown
+ //IL_00d1: Unknown result type (might be due to invalid IL or missing references)
+ //IL_00e1: Unknown result type (might be due to invalid IL or missing references)
+ //IL_00e7: Expected O, but got Unknown
+ //IL_00fa: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0104: Expected O, but got Unknown
+ //IL_0105: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0117: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0123: Unknown result type (might be due to invalid IL or missing references)
+ //IL_012d: Expected O, but got Unknown
+ //IL_012f: Unknown result type (might be due to invalid IL or missing references)
+ //IL_013b: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0145: Expected O, but got Unknown
+ //IL_0147: Unknown result type (might be due to invalid IL or missing references)
+ //IL_015e: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0176: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0182: Unknown result type (might be due to invalid IL or missing references)
+ //IL_018c: Expected O, but got Unknown
+ //IL_018d: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0199: Unknown result type (might be due to invalid IL or missing references)
+ //IL_01a3: Expected O, but got Unknown
+ //IL_01a5: Unknown result type (might be due to invalid IL or missing references)
+ //IL_01b1: Unknown result type (might be due to invalid IL or missing references)
+ //IL_01bb: Expected O, but got Unknown
+ //IL_01bc: Unknown result type (might be due to invalid IL or missing references)
+ //IL_01c8: Unknown result type (might be due to invalid IL or missing references)
+ //IL_01d2: Expected O, but got Unknown
+ //IL_01d4: Unknown result type (might be due to invalid IL or missing references)
+ //IL_01e0: Unknown result type (might be due to invalid IL or missing references)
+ //IL_01ea: Expected O, but got Unknown
+ //IL_01eb: Unknown result type (might be due to invalid IL or missing references)
+ //IL_01f7: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0201: Expected O, but got Unknown
+ //IL_0203: Unknown result type (might be due to invalid IL or missing references)
+ //IL_020f: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0219: Expected O, but got Unknown
+ switch (connectionId)
+ {
+ case 32:
+ ((Chip)target).DeleteClick += new RoutedEventHandler(ExcluirFiltro_OnClick);
+ break;
+ case 33:
+ ((Chip)target).DeleteClick += new RoutedEventHandler(ExcluirFiltro_onDeleteClick);
+ break;
+ case 37:
+ ((ToggleButton)(CheckBox)target).Checked += new RoutedEventHandler(CheckBox_Checked);
+ ((ToggleButton)(CheckBox)target).Unchecked += new RoutedEventHandler(CheckBox_Checked);
+ break;
+ case 38:
+ {
+ EventSetter val = new EventSetter();
+ val.Event = ToggleButton.CheckedEvent;
+ val.Handler = (Delegate)new RoutedEventHandler(OnChecked_OnHandler);
+ ((Collection<SetterBase>)(object)((Style)target).Setters).Add((SetterBase)(object)val);
+ val = new EventSetter();
+ val.Event = ToggleButton.UncheckedEvent;
+ val.Handler = (Delegate)new RoutedEventHandler(Unchecked_OnHandler);
+ ((Collection<SetterBase>)(object)((Style)target).Setters).Add((SetterBase)(object)val);
+ break;
+ }
+ case 39:
+ ((ButtonBase)(Button)target).Click += new RoutedEventHandler(ArquivoDigital_OnClick);
+ break;
+ case 40:
+ ((ButtonBase)(Button)target).Click += new RoutedEventHandler(Alterar_OnClick);
+ break;
+ case 41:
+ ((ComboBox)target).DropDownOpened += TipoPagamento_DropDownOpened;
+ ((ComboBox)target).DropDownClosed += TipoPagamento_OnDropDownClosed;
+ break;
+ case 44:
+ ((ToggleButton)(CheckBox)target).Checked += new RoutedEventHandler(CheckBoxFiltros_Checked);
+ ((ToggleButton)(CheckBox)target).Unchecked += new RoutedEventHandler(CheckBoxFiltros_Checked);
+ break;
+ case 45:
+ ((ToggleButton)(CheckBox)target).Checked += new RoutedEventHandler(CheckBoxFiltros_Checked);
+ ((ToggleButton)(CheckBox)target).Unchecked += new RoutedEventHandler(CheckBoxFiltros_Checked);
+ break;
+ case 46:
+ ((ToggleButton)(CheckBox)target).Checked += new RoutedEventHandler(CheckBoxFiltros_Checked);
+ ((ToggleButton)(CheckBox)target).Unchecked += new RoutedEventHandler(CheckBoxFiltros_Checked);
+ break;
+ case 60:
+ ((ButtonBase)(Button)target).Click += new RoutedEventHandler(ExtratoConta_OnClick);
+ break;
+ }
+ }
+}