From 225aa1499e37faf9d38257caabbadc68d78b427e Mon Sep 17 00:00:00 2001 From: Lucas Faria Mendes Date: Mon, 30 Mar 2026 12:29:41 -0300 Subject: decompiler.com --- .../SeguradoraView.cs | 665 +++++++++++++++++++++ 1 file changed, 665 insertions(+) create mode 100644 Decompiler/Gestor.Application.Views.Ferramentas/SeguradoraView.cs (limited to 'Decompiler/Gestor.Application.Views.Ferramentas/SeguradoraView.cs') diff --git a/Decompiler/Gestor.Application.Views.Ferramentas/SeguradoraView.cs b/Decompiler/Gestor.Application.Views.Ferramentas/SeguradoraView.cs new file mode 100644 index 0000000..34e7151 --- /dev/null +++ b/Decompiler/Gestor.Application.Views.Ferramentas/SeguradoraView.cs @@ -0,0 +1,665 @@ +using System; +using System.CodeDom.Compiler; +using System.Collections.Generic; +using System.ComponentModel; +using System.Diagnostics; +using System.Linq; +using System.Runtime.CompilerServices; +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 System.Windows.Threading; +using CurrencyTextBoxControl; +using Gestor.Application.Drawers; +using Gestor.Application.Helpers; +using Gestor.Application.Servicos; +using Gestor.Application.ViewModels.Ferramentas; +using Gestor.Application.Views.Generic; +using Gestor.Common.Helpers; +using Gestor.Common.Validation; +using Gestor.Model.Common; +using Gestor.Model.Domain.Configuracoes; +using Gestor.Model.Domain.Generic; +using Gestor.Model.Domain.Seguros; +using Xceed.Wpf.AvalonDock.Controls; + +namespace Gestor.Application.Views.Ferramentas; + +public class SeguradoraView : BaseUserControl, IComponentConnector, IStyleConnector +{ + [Serializable] + [CompilerGenerated] + private sealed class _003C_003Ec + { + public static readonly _003C_003Ec _003C_003E9 = new _003C_003Ec(); + + public static MouseButtonEventHandler _003C_003E9__2_0; + + public static Func _003C_003E9__21_0; + + internal void _003CContentLoad_003Eb__2_0(object sender, MouseButtonEventArgs args) + { + } + + internal bool _003CImpostos_OnClick_003Eb__21_0(ConfiguracaoSistema x) + { + //IL_0001: Unknown result type (might be due to invalid IL or missing references) + //IL_0007: Invalid comparison between Unknown and I4 + return (int)x.Configuracao != 5; + } + } + + public SeguradoraViewModel ViewModel; + + internal DataGrid SeguradoraGrid; + + internal DataGridTextColumn NomeField; + + internal DataGridTextColumn ApelidoField; + + internal MenuItem MaisOpcoesButton; + + internal ToggleButton AtivoBox; + + internal TextBox DocumentoPrincipalBox; + + internal TextBox AssistenciaBox; + + internal TextBox SusepBox; + + internal TextBox CodigoCiaBox; + + internal TextBox LinkAppAndroidBox; + + internal TextBox LinkAppIosBox; + + internal CurrencyTextBox ToleranciaComissaoBox; + + internal CurrencyTextBox ToleranciaPremioBox; + + internal TextBox ObservacaoBox; + + internal ListBox ContatosListBox; + + internal ListBox EnderecoSeguradoraBox; + + private bool _contentLoaded; + + public SeguradoraView() + { + ((FrameworkElement)this).Tag = "CADASTRO DE SEGURADORA"; + Tela = (TipoTela)13; + ViewModel = new SeguradoraViewModel(); + ((FrameworkElement)this).DataContext = ViewModel; + InitializeComponent(); + Dispatcher dispatcher = ((DispatcherObject)this).Dispatcher; + if (dispatcher != null) + { + dispatcher.BeginInvoke((DispatcherPriority)7, (Delegate)new Action(ContentLoad)); + } + } + + private void ContentLoad() + { + //IL_0019: Unknown result type (might be due to invalid IL or missing references) + //IL_0023: Expected O, but got Unknown + //IL_003d: Unknown result type (might be due to invalid IL or missing references) + //IL_0042: Unknown result type (might be due to invalid IL or missing references) + //IL_0048: Expected O, but got Unknown + ((Selector)SeguradoraGrid).SelectedIndex = 0; + ((Selector)SeguradoraGrid).SelectionChanged += new SelectionChangedEventHandler(SeguradoraGrid_OnSelectionChanged); + DataGrid seguradoraGrid = SeguradoraGrid; + object obj = _003C_003Ec._003C_003E9__2_0; + if (obj == null) + { + MouseButtonEventHandler val = delegate + { + }; + _003C_003Ec._003C_003E9__2_0 = val; + obj = (object)val; + } + ((Control)seguradoraGrid).MouseDoubleClick += (MouseButtonEventHandler)obj; + ((DataGridColumn)NomeField).Visibility = (Visibility)(ViewModel.Apelido ? 2 : 0); + ((DataGridColumn)ApelidoField).Visibility = (Visibility)((!ViewModel.Apelido) ? 2 : 0); + } + + private async void Salvar_OnClick(object sender, RoutedEventArgs e) + { + ViewModel.Loading(isLoading: true); + ViewModel.SelectedSeguradora.NomeSocial = ViewModel.SelectedSeguradora.NomeSocialBanco.Trim(); + if ((ToleranciaComissaoBox.Number > 2m || ToleranciaPremioBox.Number > 2m) && (ViewModel.Tolerancia != ToleranciaComissaoBox.Number || ViewModel.Tolerancia != ToleranciaPremioBox.Number)) + { + bool? flag = await ViewModel.ShowSenha("TOLERÂNCIA DE COMISSÃO, DIFERENÇA IMPORTAÇÃO OU REPASSE MAIOR QUE R$2,00, PREENCHA A SENHA ADM PARA PROSSEGUIR."); + if (!flag.HasValue) + { + ViewModel.Loading(isLoading: false); + return; + } + if (!flag.GetValueOrDefault()) + { + await ViewModel.ShowMessage("SENHA INVÁLIDA"); + ViewModel.Loading(isLoading: false); + return; + } + } + List> list = await ViewModel.Salvar(); + ((DependencyObject)(object)this).ValidateFields(list); + bool num = list == null || list.Count == 0; + ViewModel.Loading(isLoading: false); + if (!num) + { + await ViewModel.ShowMessage(list, ViewModel.ErroCamposInvalidos, "OK"); + } + } + + private void Alterar_OnClick(object sender, RoutedEventArgs e) + { + ViewModel.Clonar(); + ViewModel.Alterar(alterar: true); + ValidarTela(); + } + + private void Cancelar_OnClick(object sender, RoutedEventArgs e) + { + ViewModel.CancelarAlteracao(); + } + + private void IncluirTelefone_OnClick(object sender, RoutedEventArgs e) + { + ViewModel.IncluirTelefone(); + ValidarTela(); + } + + private void ExcluirTelefone_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 + Button val = (Button)((sender is Button) ? sender : null); + if (val != null) + { + ListBox val2 = Extentions.FindVisualAncestor((DependencyObject)(object)val); + SeguradoraContato contato = (SeguradoraContato)((ItemsControl)val2).Items[((CollectionView)((ItemsControl)val2).Items).IndexOf(((FrameworkElement)val).DataContext)]; + ViewModel.ExcluirTelefone(contato); + } + } + + private void ExcluirEndereco_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 + Button val = (Button)((sender is Button) ? sender : null); + if (val != null) + { + ListBox val2 = Extentions.FindVisualAncestor((DependencyObject)(object)val); + SeguradoraEndereco endereco = (SeguradoraEndereco)((ItemsControl)val2).Items[((CollectionView)((ItemsControl)val2).Items).IndexOf(((FrameworkElement)val).DataContext)]; + ViewModel.ExcluirEndereco(endereco); + } + } + + private void IncluirEndereco_OnClick(object sender, RoutedEventArgs e) + { + ViewModel.IncluirEndereco(); + ValidarTela(); + } + + public async void Metas_Click(object sender, RoutedEventArgs e) + { + ViewModel.Loading(isLoading: true); + if (await ViewModel.VerificarPermissao((TipoTela)31)) + { + ViewModel.ShowDrawer(new MetaSeguradoraView(ViewModel.SelectedSeguradora), 0, close: false); + ViewModel.Loading(isLoading: false); + } + } + + private async void PostcodeBox_OnLostFocus(object sender, RoutedEventArgs e) + { + TextBox val = (TextBox)sender; + string text = ValidationHelper.FormatPostCode(val.Text); + if (ValidationHelper.ValidatePostCode(text)) + { + ListBox val2 = Extentions.FindVisualAncestor((DependencyObject)(object)val); + ListBoxItem val3 = (ListBoxItem)((ItemsControl)val2).ItemContainerGenerator.ContainerFromIndex(((CollectionView)((ItemsControl)val2).Items).IndexOf(((FrameworkElement)val).DataContext)); + ContentPresenter contentPresenter = FindVisualChild.Find((DependencyObject)(object)val3); + DataTemplate dataTemplate = contentPresenter.ContentTemplate; + ((TextBox)((FrameworkTemplate)dataTemplate).FindName("CepBox", (FrameworkElement)(object)contentPresenter)).Text = text; + EnderecoBase val4 = await ViewModel.BuscaCep(text); + if (val4 != null) + { + TextBox val5 = (TextBox)((FrameworkTemplate)dataTemplate).FindName("EnderecoBox", (FrameworkElement)(object)contentPresenter); + TextBox val6 = (TextBox)((FrameworkTemplate)dataTemplate).FindName("CidadeBox", (FrameworkElement)(object)contentPresenter); + TextBox val7 = (TextBox)((FrameworkTemplate)dataTemplate).FindName("EstadoBox", (FrameworkElement)(object)contentPresenter); + TextBox val8 = (TextBox)((FrameworkTemplate)dataTemplate).FindName("BairroBox", (FrameworkElement)(object)contentPresenter); + val5.Text = val4.Endereco; + val6.Text = val4.Cidade; + val7.Text = val4.Estado; + val8.Text = val4.Bairro; + } + } + } + + private void AutoCompleteBoxSeguradora_Populating(object sender, PopulatingEventArgs e) + { + e.Cancel = true; + ViewModel.Filtrar(ValidationHelper.RemoveDiacritics(e.Parameter.Trim())).ContinueWith(delegate(Task> 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 AutoCompleteBox_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.FiltrarSeguradora(""); + } + } + + private void AutoCompleteBoxDescricao_Populating(object sender, PopulatingEventArgs e) + { + e.Cancel = true; + ViewModel.FiltrarConfig(ValidationHelper.RemoveDiacritics(e.Parameter.Trim())).ContinueWith(delegate(Task> 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 AutoCompleteBoxDescricao_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.FiltrarDescricao(""); + } + } + + private void SeguradoraGrid_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_0031: Unknown result type (might be due to invalid IL or missing references) + //IL_003b: Expected O, but got Unknown + DataGrid val = (DataGrid)sender; + if (val == null || ((Selector)val).SelectedIndex >= 0) + { + ViewModel.SelecionaSeguradora((Seguradora)((val != null) ? ((ItemsControl)val).Items[((Selector)val).SelectedIndex] : null)); + } + } + + private async void AbrirAquivoDigital_Click(object sender, RoutedEventArgs e) + { + if (!new PermissaoArquivoDigitalServico().BuscarPermissao(Recursos.Usuario, (TipoArquivoDigital)8).Consultar) + { + await ViewModel.ShowMessage("VOCÊ NÃO POSSUI PERMISSÃO PARA ACESSAR\nARQUIVO DIGITAL DE " + EnumHelper.GetDescription((TipoArquivoDigital)8) + "."); + return; + } + FiltroArquivoDigital filtro = new FiltroArquivoDigital + { + Id = ((DomainBase)ViewModel.SelectedSeguradora).Id, + Tipo = (TipoArquivoDigital)8, + Parente = ViewModel.SelectedSeguradora + }; + ViewModel.ShowDrawer(new ArquivoDigitalDrawer(filtro), 0, close: false); + } + + private void AbrirLog_OnClick(object sender, RoutedEventArgs e) + { + ViewModel.AbrirLog((TipoTela)13, ((DomainBase)ViewModel.SelectedSeguradora).Id); + } + + private void Incluir_OnClick(object sender, RoutedEventArgs e) + { + IncluirSeguradoraView incluirSeguradoraView = new IncluirSeguradoraView(ViewModel.Seguradoras); + ((Window)new HosterWindow((ContentControl)(object)incluirSeguradoraView, "INCLUIR SEGURADORA", 500.0, 600.0)).ShowDialog(); + if (incluirSeguradoraView.ViewModel.AdicionarSeguradora != null) + { + ViewModel.Incluir(incluirSeguradoraView.ViewModel.AdicionarSeguradora); + } + } + + private void AbrirLogEmail_OnClick(object sender, RoutedEventArgs e) + { + ViewModel.AbrirLogEmail((TipoTela)13, ((DomainBase)ViewModel.SelectedSeguradora).Id); + } + + private async void Impostos_OnClick(object sender, RoutedEventArgs e) + { + if (Recursos.Configuracoes.All((ConfiguracaoSistema x) => (int)x.Configuracao != 5)) + { + await ViewModel.ShowMessage("RECURSO NÃO HABILITADO, ACESSE AS CONFIGURAÇÕES DENTRO DO CADASTRO DE EMPRESAS E FILIAIS PARA HABILITAR O RECURSO."); + } + else if (await ViewModel.VerificarPermissao((TipoTela)56)) + { + ViewModel.ShowDrawer(new ImpostoDrawer(0, ((DomainBase)ViewModel.SelectedSeguradora).Id), 0, close: false); + } + } + + private void DocumentoPrincipalBox_LostFocus(object sender, RoutedEventArgs e) + { + //IL_0001: Unknown result type (might be due to invalid IL or missing references) + if (!((TextBoxBase)(TextBox)sender).IsReadOnly) + { + string text = ValidationHelper.Clear(DocumentoPrincipalBox.Text); + if (!string.IsNullOrEmpty(text)) + { + DocumentoPrincipalBox.Text = ((text.Length == 11) ? ValidationHelper.FormatDocument(text.PadLeft(11, '0').Substring(0, 11)) : ValidationHelper.FormatDocument(text.PadLeft(14, '0').Substring(0, 14))); + } + } + } + + private void ValidarTela() + { + if (ViewModel.SelectedSeguradora != null) + { + List> list = ViewModel.SelectedSeguradora.Validate(); + SeguradoraContato? obj = ViewModel.Contatos.FirstOrDefault(); + list.AddRange(((obj != null) ? obj.Validate() : null) ?? new List>()); + SeguradoraEndereco? obj2 = ViewModel.Enderecos.FirstOrDefault(); + list.AddRange(((obj2 != null) ? obj2.Validate() : null) ?? new List>()); + ((DependencyObject)(object)this).ValidateFields(list, focusField: false); + } + } + + public void Selector_ContactChanged(object sender, SelectionChangedEventArgs e) + { + ViewModel.TipoTelefoneVisibility = (Visibility)0; + ViewModel.TelefoneVisibility = (Visibility)0; + ViewModel.PrefixoVisibility = (Visibility)0; + } + + [DebuggerNonUserCode] + [GeneratedCode("PresentationBuildTasks", "4.0.0.0")] + public void InitializeComponent() + { + if (!_contentLoaded) + { + _contentLoaded = true; + Uri uri = new Uri("/Gestor.Application;component/views/ferramentas/seguradoraview.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_00a2: Unknown result type (might be due to invalid IL or missing references) + //IL_00ae: Unknown result type (might be due to invalid IL or missing references) + //IL_00b8: Expected O, but got Unknown + //IL_00b9: Unknown result type (might be due to invalid IL or missing references) + //IL_00c5: Unknown result type (might be due to invalid IL or missing references) + //IL_00cf: Expected O, but got Unknown + //IL_00d1: Unknown result type (might be due to invalid IL or missing references) + //IL_00dd: Unknown result type (might be due to invalid IL or missing references) + //IL_00e7: Expected O, but got Unknown + //IL_00e8: Unknown result type (might be due to invalid IL or missing references) + //IL_00f4: Unknown result type (might be due to invalid IL or missing references) + //IL_00fe: Expected O, but got Unknown + //IL_0101: Unknown result type (might be due to invalid IL or missing references) + //IL_010b: Expected O, but got Unknown + //IL_010e: Unknown result type (might be due to invalid IL or missing references) + //IL_0118: Expected O, but got Unknown + //IL_011b: Unknown result type (might be due to invalid IL or missing references) + //IL_0125: Expected O, but got Unknown + //IL_0127: Unknown result type (might be due to invalid IL or missing references) + //IL_0133: Unknown result type (might be due to invalid IL or missing references) + //IL_013d: Expected O, but got Unknown + //IL_013f: Unknown result type (might be due to invalid IL or missing references) + //IL_014b: Unknown result type (might be due to invalid IL or missing references) + //IL_0155: Expected O, but got Unknown + //IL_0157: Unknown result type (might be due to invalid IL or missing references) + //IL_0163: Unknown result type (might be due to invalid IL or missing references) + //IL_016d: Expected O, but got Unknown + //IL_016f: Unknown result type (might be due to invalid IL or missing references) + //IL_017b: Unknown result type (might be due to invalid IL or missing references) + //IL_0185: Expected O, but got Unknown + //IL_0187: Unknown result type (might be due to invalid IL or missing references) + //IL_0193: Unknown result type (might be due to invalid IL or missing references) + //IL_019d: Expected O, but got Unknown + //IL_01a0: Unknown result type (might be due to invalid IL or missing references) + //IL_01aa: Expected O, but got Unknown + //IL_01ac: Unknown result type (might be due to invalid IL or missing references) + //IL_01b8: Unknown result type (might be due to invalid IL or missing references) + //IL_01c2: Expected O, but got Unknown + //IL_01c4: Unknown result type (might be due to invalid IL or missing references) + //IL_01d0: Unknown result type (might be due to invalid IL or missing references) + //IL_01da: Expected O, but got Unknown + //IL_01dc: Unknown result type (might be due to invalid IL or missing references) + //IL_01e8: Unknown result type (might be due to invalid IL or missing references) + //IL_01f2: Expected O, but got Unknown + //IL_01f4: Unknown result type (might be due to invalid IL or missing references) + //IL_0200: Unknown result type (might be due to invalid IL or missing references) + //IL_020a: Expected O, but got Unknown + //IL_020d: Unknown result type (might be due to invalid IL or missing references) + //IL_0217: Expected O, but got Unknown + //IL_021a: Unknown result type (might be due to invalid IL or missing references) + //IL_0224: Expected O, but got Unknown + //IL_0232: Unknown result type (might be due to invalid IL or missing references) + //IL_023c: Expected O, but got Unknown + //IL_0249: Unknown result type (might be due to invalid IL or missing references) + //IL_0253: Expected O, but got Unknown + //IL_0256: Unknown result type (might be due to invalid IL or missing references) + //IL_0260: Expected O, but got Unknown + //IL_0263: Unknown result type (might be due to invalid IL or missing references) + //IL_026d: Expected O, but got Unknown + //IL_0270: Unknown result type (might be due to invalid IL or missing references) + //IL_027a: Expected O, but got Unknown + //IL_027d: Unknown result type (might be due to invalid IL or missing references) + //IL_0287: Expected O, but got Unknown + //IL_028a: Unknown result type (might be due to invalid IL or missing references) + //IL_0294: Expected O, but got Unknown + //IL_0297: Unknown result type (might be due to invalid IL or missing references) + //IL_02a1: Expected O, but got Unknown + //IL_02a4: Unknown result type (might be due to invalid IL or missing references) + //IL_02ae: Expected O, but got Unknown + //IL_02b1: Unknown result type (might be due to invalid IL or missing references) + //IL_02bb: Expected O, but got Unknown + //IL_02bd: Unknown result type (might be due to invalid IL or missing references) + //IL_02c9: Unknown result type (might be due to invalid IL or missing references) + //IL_02d3: Expected O, but got Unknown + //IL_02d6: Unknown result type (might be due to invalid IL or missing references) + //IL_02e0: Expected O, but got Unknown + //IL_02e2: Unknown result type (might be due to invalid IL or missing references) + //IL_02ee: Unknown result type (might be due to invalid IL or missing references) + //IL_02f8: Expected O, but got Unknown + //IL_02fb: Unknown result type (might be due to invalid IL or missing references) + //IL_0305: Expected O, but got Unknown + //IL_0307: Unknown result type (might be due to invalid IL or missing references) + //IL_0313: Unknown result type (might be due to invalid IL or missing references) + //IL_031d: Expected O, but got Unknown + //IL_031e: Unknown result type (might be due to invalid IL or missing references) + //IL_032a: Unknown result type (might be due to invalid IL or missing references) + //IL_0334: Expected O, but got Unknown + switch (connectionId) + { + case 1: + ((AutoCompleteBox)target).Populating += new PopulatingEventHandler(AutoCompleteBoxSeguradora_Populating); + ((AutoCompleteBox)target).TextChanged += new RoutedEventHandler(AutoCompleteBox_OnTextChanged); + break; + case 2: + ((AutoCompleteBox)target).Populating += new PopulatingEventHandler(AutoCompleteBoxSeguradora_Populating); + ((AutoCompleteBox)target).TextChanged += new RoutedEventHandler(AutoCompleteBox_OnTextChanged); + break; + case 3: + SeguradoraGrid = (DataGrid)target; + break; + case 4: + NomeField = (DataGridTextColumn)target; + break; + case 5: + ApelidoField = (DataGridTextColumn)target; + break; + case 6: + ((MenuItem)target).Click += new RoutedEventHandler(Incluir_OnClick); + break; + case 7: + ((MenuItem)target).Click += new RoutedEventHandler(Alterar_OnClick); + break; + case 8: + ((MenuItem)target).Click += new RoutedEventHandler(Salvar_OnClick); + break; + case 9: + ((MenuItem)target).Click += new RoutedEventHandler(Cancelar_OnClick); + break; + case 10: + ((MenuItem)target).Click += new RoutedEventHandler(AbrirAquivoDigital_Click); + break; + case 11: + MaisOpcoesButton = (MenuItem)target; + break; + case 12: + ((MenuItem)target).Click += new RoutedEventHandler(Metas_Click); + break; + case 13: + ((MenuItem)target).Click += new RoutedEventHandler(Impostos_OnClick); + break; + case 14: + ((MenuItem)target).Click += new RoutedEventHandler(AbrirLog_OnClick); + break; + case 15: + ((MenuItem)target).Click += new RoutedEventHandler(AbrirLogEmail_OnClick); + break; + case 16: + AtivoBox = (ToggleButton)target; + break; + case 17: + DocumentoPrincipalBox = (TextBox)target; + ((UIElement)DocumentoPrincipalBox).PreviewTextInput += new TextCompositionEventHandler(SomenteNumeros); + ((UIElement)DocumentoPrincipalBox).LostFocus += new RoutedEventHandler(DocumentoPrincipalBox_LostFocus); + break; + case 18: + AssistenciaBox = (TextBox)target; + break; + case 19: + SusepBox = (TextBox)target; + break; + case 20: + CodigoCiaBox = (TextBox)target; + break; + case 21: + LinkAppAndroidBox = (TextBox)target; + break; + case 22: + LinkAppIosBox = (TextBox)target; + break; + case 23: + ToleranciaComissaoBox = (CurrencyTextBox)target; + break; + case 24: + ToleranciaPremioBox = (CurrencyTextBox)target; + break; + case 25: + ObservacaoBox = (TextBox)target; + break; + case 26: + ((MenuItem)target).Click += new RoutedEventHandler(IncluirTelefone_OnClick); + break; + case 27: + ContatosListBox = (ListBox)target; + break; + case 32: + ((MenuItem)target).Click += new RoutedEventHandler(IncluirEndereco_OnClick); + break; + case 33: + EnderecoSeguradoraBox = (ListBox)target; + break; + case 37: + ((AutoCompleteBox)target).Populating += new PopulatingEventHandler(AutoCompleteBoxDescricao_Populating); + ((AutoCompleteBox)target).TextChanged += new RoutedEventHandler(AutoCompleteBoxDescricao_OnTextChanged); + break; + default: + _contentLoaded = true; + break; + } + } + + [DebuggerNonUserCode] + [GeneratedCode("PresentationBuildTasks", "4.0.0.0")] + [EditorBrowsable(EditorBrowsableState.Never)] + void IStyleConnector.Connect(int connectionId, object target) + { + //IL_002f: Unknown result type (might be due to invalid IL or missing references) + //IL_003b: Unknown result type (might be due to invalid IL or missing references) + //IL_0045: Expected O, but got Unknown + //IL_0047: Unknown result type (might be due to invalid IL or missing references) + //IL_0054: Unknown result type (might be due to invalid IL or missing references) + //IL_005e: Expected O, but got Unknown + //IL_0060: Unknown result type (might be due to invalid IL or missing references) + //IL_006d: Unknown result type (might be due to invalid IL or missing references) + //IL_0077: Expected O, but got Unknown + //IL_0078: Unknown result type (might be due to invalid IL or missing references) + //IL_0085: Unknown result type (might be due to invalid IL or missing references) + //IL_008f: Expected O, but got Unknown + //IL_0091: 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_00a7: Expected O, but got Unknown + //IL_00a9: Unknown result type (might be due to invalid IL or missing references) + //IL_00b5: Unknown result type (might be due to invalid IL or missing references) + //IL_00bf: Expected O, but got Unknown + //IL_00c0: Unknown result type (might be due to invalid IL or missing references) + //IL_00cd: Unknown result type (might be due to invalid IL or missing references) + //IL_00d7: Expected O, but got Unknown + //IL_00d9: Unknown result type (might be due to invalid IL or missing references) + //IL_00e6: Unknown result type (might be due to invalid IL or missing references) + //IL_00f0: Expected O, but got Unknown + //IL_00f2: Unknown result type (might be due to invalid IL or missing references) + //IL_00fe: Unknown result type (might be due to invalid IL or missing references) + //IL_0108: Expected O, but got Unknown + switch (connectionId) + { + case 28: + ((Selector)(ComboBox)target).SelectionChanged += new SelectionChangedEventHandler(Selector_ContactChanged); + break; + case 29: + ((UIElement)(TextBox)target).PreviewTextInput += new TextCompositionEventHandler(SomenteNumeros); + break; + case 30: + ((UIElement)(TextBox)target).LostFocus += new RoutedEventHandler(FormatarTelefone); + ((UIElement)(TextBox)target).PreviewTextInput += new TextCompositionEventHandler(SomenteNumeros); + break; + case 31: + ((ButtonBase)(Button)target).Click += new RoutedEventHandler(ExcluirTelefone_OnClick); + break; + case 34: + ((UIElement)(TextBox)target).LostFocus += new RoutedEventHandler(PostcodeBox_OnLostFocus); + ((UIElement)(TextBox)target).PreviewTextInput += new TextCompositionEventHandler(SomenteNumeros); + break; + case 35: + ((UIElement)(TextBox)target).PreviewTextInput += new TextCompositionEventHandler(SomenteNumeros); + break; + case 36: + ((ButtonBase)(Button)target).Click += new RoutedEventHandler(ExcluirEndereco_OnClick); + break; + case 32: + case 33: + break; + } + } +} -- cgit v1.2.3