summaryrefslogtreecommitdiff
path: root/Decompiler/Gestor.Application/MainWindow.cs
diff options
context:
space:
mode:
authorLucas Faria Mendes <lucas.fariamo08@gmail.com>2026-03-30 15:29:41 +0000
committerLucas Faria Mendes <lucas.fariamo08@gmail.com>2026-03-30 15:29:41 +0000
commit225aa1499e37faf9d38257caabbadc68d78b427e (patch)
tree102bb7a40c58595348ae9d3c7076201759fe0720 /Decompiler/Gestor.Application/MainWindow.cs
parent1f4e14b2e973ee7de337fd4866d9a5ceff5cb6d1 (diff)
downloadgestor-225aa1499e37faf9d38257caabbadc68d78b427e.tar.gz
gestor-225aa1499e37faf9d38257caabbadc68d78b427e.zip
decompiler.com
Diffstat (limited to 'Decompiler/Gestor.Application/MainWindow.cs')
-rw-r--r--Decompiler/Gestor.Application/MainWindow.cs2788
1 files changed, 2788 insertions, 0 deletions
diff --git a/Decompiler/Gestor.Application/MainWindow.cs b/Decompiler/Gestor.Application/MainWindow.cs
new file mode 100644
index 0000000..0887959
--- /dev/null
+++ b/Decompiler/Gestor.Application/MainWindow.cs
@@ -0,0 +1,2788 @@
+using System;
+using System.CodeDom.Compiler;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Diagnostics;
+using System.Drawing;
+using System.Drawing.Imaging;
+using System.IO;
+using System.Linq;
+using System.Net;
+using System.Net.Http;
+using System.Net.Sockets;
+using System.Runtime.InteropServices;
+using System.Text;
+using System.Text.RegularExpressions;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Controls.Primitives;
+using System.Windows.Forms;
+using System.Windows.Input;
+using System.Windows.Interop;
+using System.Windows.Markup;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Shapes;
+using System.Windows.Shell;
+using System.Windows.Threading;
+using Agger.Application.Menu;
+using Agger.Registro;
+using Assinador.Model.Common;
+using Gestor.Application.Actions;
+using Gestor.Application.Componentes;
+using Gestor.Application.Drawers;
+using Gestor.Application.Helpers;
+using Gestor.Application.Servicos;
+using Gestor.Application.Servicos.Ferramentas;
+using Gestor.Application.Servicos.Generic;
+using Gestor.Application.Servicos.Seguros;
+using Gestor.Application.ViewModels;
+using Gestor.Application.ViewModels.Seguros;
+using Gestor.Application.Views.BI;
+using Gestor.Application.Views.Ferramentas;
+using Gestor.Application.Views.Financeiro;
+using Gestor.Application.Views.Financeiro.Relatorios;
+using Gestor.Application.Views.Generic;
+using Gestor.Application.Views.Menus;
+using Gestor.Application.Views.Relatorios;
+using Gestor.Application.Views.Seguros;
+using Gestor.Common.Helpers;
+using Gestor.Common.Security;
+using Gestor.Common.Validation;
+using Gestor.Infrastructure.UnitOfWork.Generic;
+using Gestor.Infrastructure.UnitOfWork.Logic;
+using Gestor.Model.API;
+using Gestor.Model.Common;
+using Gestor.Model.Domain.Common;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Domain.Seguros;
+using Gestor.Model.License;
+using MaterialDesignThemes.Wpf;
+using QRCoder;
+
+namespace Gestor.Application;
+
+public class MainWindow : Window, IComponentConnector, IStyleConnector
+{
+ private enum MonitorOptions : uint
+ {
+ MonitorDefaulttoprimary = 1u,
+ MonitorDefaulttonearest
+ }
+
+ public struct Point
+ {
+ public int X;
+
+ public int Y;
+
+ public Point(int x, int y)
+ {
+ X = x;
+ Y = y;
+ }
+ }
+
+ private struct Minmaxinfo
+ {
+ private readonly Point ptReserved;
+
+ public Point ptMaxSize;
+
+ public Point ptMaxPosition;
+
+ private readonly Point ptMinTrackSize;
+
+ private readonly Point ptMaxTrackSize;
+ }
+
+ [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]
+ private class Monitorinfo
+ {
+ private readonly int cbSize = Marshal.SizeOf(typeof(Monitorinfo));
+
+ public readonly Rect rcMonitor;
+
+ public readonly Rect rcWork;
+
+ private readonly int dwFlags;
+ }
+
+ public struct Rect
+ {
+ public int Left;
+
+ public int Top;
+
+ public int Right;
+
+ public int Bottom;
+ }
+
+ internal MainViewModel ViewModel;
+
+ private bool _buttonClickable;
+
+ private string _lastSearch;
+
+ private DateTime? lastSearchTime;
+
+ private TextBox _textBox;
+
+ internal WindowChrome WindowChrome;
+
+ internal Grid MinimizeButton;
+
+ internal Grid MaximizeButton;
+
+ internal Grid CloseButton;
+
+ internal HamburgerMenu MainMenu;
+
+ internal HamburgerMenuItem CentralDeNegociosMenu;
+
+ internal HamburgerMenuItem DashBoard;
+
+ internal HamburgerMenuItem PainelBi;
+
+ internal HamburgerMenuItem Prospeccao;
+
+ internal HamburgerMenuItem SegurosMenu;
+
+ internal HamburgerMenuItem Consulta;
+
+ internal HamburgerMenuItem Clientes;
+
+ internal HamburgerMenuItem Apolices;
+
+ internal HamburgerMenuItem Itens;
+
+ internal HamburgerMenuItem Sinistros;
+
+ internal HamburgerMenuItem ImportPdf;
+
+ internal HamburgerMenuItem CriticaPdf;
+
+ internal HamburgerMenuItem Comissao;
+
+ internal HamburgerMenuItem RelatoriosMenu;
+
+ internal HamburgerMenuItem RelatoriosCliente;
+
+ internal HamburgerMenuItem RelatoriosDocumentos;
+
+ internal HamburgerMenuItem RelatoriosParcelas;
+
+ internal HamburgerMenuItem RelatoriosSinistros;
+
+ internal HamburgerMenuItem RelatoriosFechamento;
+
+ internal HamburgerMenuItem RelatoriosExtrato;
+
+ internal HamburgerMenuItem RelatoriosNotas;
+
+ internal HamburgerMenuItem RelatoriosTarefas;
+
+ internal HamburgerMenuItem RelatoriosLogs;
+
+ internal HamburgerMenuItem ExtratoConta;
+
+ internal HamburgerMenuItem FechamentoFinanceiro;
+
+ internal HamburgerMenuItem Assinatura;
+
+ internal HamburgerMenuItem Aggilizador;
+
+ internal HamburgerMenuItem Epic;
+
+ internal HamburgerMenuItem FinanceiroMenu;
+
+ internal HamburgerMenuItem Conta;
+
+ internal HamburgerMenuItem Centro;
+
+ internal HamburgerMenuItem Fornecedor;
+
+ internal HamburgerMenuItem Plano;
+
+ internal HamburgerMenuItem FerramentasMenu;
+
+ internal HamburgerMenuItem Emails;
+
+ internal HamburgerMenuItem Empresa;
+
+ internal HamburgerMenuItem Estipulantes;
+
+ internal HamburgerMenuItem ManutencaoPagamentos;
+
+ internal HamburgerMenuItem NotaFiscal;
+
+ internal HamburgerMenuItem Parceiro;
+
+ internal HamburgerMenuItem Produtos;
+
+ internal HamburgerMenuItem Qualificacao;
+
+ internal HamburgerMenuItem Ramos;
+
+ internal HamburgerMenuItem Recibo;
+
+ internal HamburgerMenuItem Seguradoras;
+
+ internal HamburgerMenuItem Socio;
+
+ internal HamburgerMenuItem Statuses;
+
+ internal HamburgerMenuItem StatusProspeccao;
+
+ internal HamburgerMenuItem TipoTarefa;
+
+ internal HamburgerMenuItem TipoVendedor;
+
+ internal HamburgerMenuItem Usuarios;
+
+ internal HamburgerMenuItem Vendedores;
+
+ internal RowDefinition Area;
+
+ internal ComboBox Status;
+
+ internal ComboBox FiltroClienteTipoBox;
+
+ internal AutoCompleteBox PesquisaCliente;
+
+ internal AutoCompleteBox PesquisaClienteNome;
+
+ internal Loading LoadingAutoComplete;
+
+ internal TextBox DocumentoPrincipalBox;
+
+ internal Button ObservacaoApolice;
+
+ internal MenuItem PesquisaAvancada;
+
+ internal MenuItem Voltar;
+
+ internal ContentControl ContentControl;
+
+ internal PopupBox QrCode;
+
+ internal Image ImageAppStore;
+
+ internal Image ImageGooglePlay;
+
+ internal TextBlock SessionNumber;
+
+ internal PopupBox BoletoPopup;
+
+ internal PopupBox HelpPopup;
+
+ internal StackPanel TarefaPopup;
+
+ internal Snackbar Snackbar;
+
+ internal Grid ProgressRing;
+
+ internal DrawerHost DrawerHost;
+
+ private bool _contentLoaded;
+
+ public static WindowState ApplicationState { get; set; }
+
+ private ManutencaoItem ManutencaoItem { get; set; }
+
+ private AcessoApolice Acesso { get; set; }
+
+ private string PipeName { get; set; }
+
+ public object _lastCustomer { get; set; }
+
+ private Key? lastKey { get; set; }
+
+ private string lastSearch
+ {
+ get
+ {
+ return _lastSearch;
+ }
+ set
+ {
+ _lastSearch = value;
+ lastSearchTime = DateTime.Now;
+ }
+ }
+
+ private IntPtr WindowProc(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, ref bool handled)
+ {
+ if (msg == 36)
+ {
+ WmGetMinMaxInfo(lParam);
+ }
+ return IntPtr.Zero;
+ }
+
+ private void WmGetMinMaxInfo(IntPtr lParam)
+ {
+ //IL_0002: Unknown result type (might be due to invalid IL or missing references)
+ ((FrameworkElement)this).MaxHeight = Screen.FromHandle(new WindowInteropHelper((Window)(object)this).Handle).WorkingArea.Height;
+ GetCursorPos(out var lpPoint);
+ IntPtr hMonitor = MonitorFromPoint(new Point(0, 0), MonitorOptions.MonitorDefaulttoprimary);
+ Monitorinfo monitorinfo = new Monitorinfo();
+ if (GetMonitorInfo(hMonitor, monitorinfo))
+ {
+ IntPtr intPtr = MonitorFromPoint(lpPoint, MonitorOptions.MonitorDefaulttonearest);
+ Minmaxinfo structure = (Minmaxinfo)Marshal.PtrToStructure(lParam, typeof(Minmaxinfo));
+ if (hMonitor.Equals((object?)(nint)intPtr))
+ {
+ structure.ptMaxPosition.X = monitorinfo.rcWork.Left;
+ structure.ptMaxPosition.Y = monitorinfo.rcWork.Top;
+ structure.ptMaxSize.X = monitorinfo.rcWork.Right - monitorinfo.rcWork.Left;
+ structure.ptMaxSize.Y = monitorinfo.rcWork.Bottom - monitorinfo.rcWork.Top;
+ }
+ else
+ {
+ structure.ptMaxPosition.X = monitorinfo.rcMonitor.Left;
+ structure.ptMaxPosition.Y = monitorinfo.rcMonitor.Top;
+ structure.ptMaxSize.X = monitorinfo.rcMonitor.Right - monitorinfo.rcMonitor.Left;
+ structure.ptMaxSize.Y = monitorinfo.rcMonitor.Bottom - monitorinfo.rcMonitor.Top;
+ }
+ Marshal.StructureToPtr(structure, lParam, fDeleteOld: true);
+ }
+ }
+
+ [DllImport("user32.dll")]
+ [return: MarshalAs(UnmanagedType.Bool)]
+ private static extern bool GetCursorPos(out Point lpPoint);
+
+ [DllImport("user32.dll", SetLastError = true)]
+ private static extern IntPtr MonitorFromPoint(Point pt, MonitorOptions dwFlags);
+
+ [DllImport("user32.dll")]
+ private static extern bool GetMonitorInfo(IntPtr hMonitor, Monitorinfo lpmi);
+
+ public MainWindow()
+ {
+ //IL_00f3: Unknown result type (might be due to invalid IL or missing references)
+ //IL_00fd: Expected O, but got Unknown
+ //IL_010a: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0114: Expected O, but got Unknown
+ //IL_0121: Unknown result type (might be due to invalid IL or missing references)
+ //IL_012b: Expected O, but got Unknown
+ //IL_0138: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0142: Expected O, but got Unknown
+ //IL_014f: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0159: Expected O, but got Unknown
+ //IL_0166: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0170: Expected O, but got Unknown
+ //IL_01b4: Unknown result type (might be due to invalid IL or missing references)
+ //IL_01be: Expected O, but got Unknown
+ ViewModel = new MainViewModel();
+ ((FrameworkElement)this).DataContext = ViewModel;
+ InitializeComponent();
+ Gestor.Application.Actions.Actions.AcessaTela = AcessarTela;
+ Gestor.Application.Actions.Actions.IniciarAggilizador = IniciarAggilizador;
+ App.SnackBar = Snackbar;
+ App.ProgressRing = ProgressRing;
+ ((UIElement)App.ProgressRing).Visibility = (Visibility)2;
+ Gestor.Application.Actions.Actions.NomeTela = (Action<string>)Delegate.Combine(Gestor.Application.Actions.Actions.NomeTela, new Action<string>(DefinirNomeTela));
+ Gestor.Application.Actions.Actions.EnablePesquisarClientes = (Action<bool>)Delegate.Combine(Gestor.Application.Actions.Actions.EnablePesquisarClientes, new Action<bool>(HabilitarPesquisarClientes));
+ Gestor.Application.Actions.Actions.EnableMainMenu = (Action<bool>)Delegate.Combine(Gestor.Application.Actions.Actions.EnableMainMenu, new Action<bool>(HabilitarMenu));
+ Gestor.Application.Actions.Actions.AcessarHoster = (Action<PipeMessageResult>)Delegate.Combine(Gestor.Application.Actions.Actions.AcessarHoster, new Action<PipeMessageResult>(AcessarHoster));
+ ((UIElement)MinimizeButton).MouseEnter += new MouseEventHandler(TopControls_OnMouseEnter);
+ ((UIElement)MinimizeButton).MouseLeave += new MouseEventHandler(TopControls_OnMouseLeave);
+ ((UIElement)MaximizeButton).MouseEnter += new MouseEventHandler(TopControls_OnMouseEnter);
+ ((UIElement)MaximizeButton).MouseLeave += new MouseEventHandler(TopControls_OnMouseLeave);
+ ((UIElement)CloseButton).MouseEnter += new MouseEventHandler(TopControls_OnMouseEnter);
+ ((UIElement)CloseButton).MouseLeave += new MouseEventHandler(TopControls_OnMouseLeave);
+ ViewModel.Head = "BEM VINDO, " + Recursos.Usuario.Nome;
+ Dispatcher dispatcher = ((DispatcherObject)this).Dispatcher;
+ if (dispatcher != null)
+ {
+ dispatcher.BeginInvoke((DispatcherPriority)7, (Delegate)new Action(ContentLoad));
+ }
+ ((Window)this).Icon = (ImageSource)new BitmapImage(Address.IconeGestor);
+ }
+
+ private async void ContentLoad()
+ {
+ if (!(await VerificarLicenca((Produto)1, (TipoTela)21)))
+ {
+ return;
+ }
+ ViewModel.PermissaoWhatsapp = ViewModel.Restricao((TipoRestricao)32);
+ TipoTelaInicial? telaInicial = Recursos.Usuario.TelaInicial;
+ if (!telaInicial.HasValue)
+ {
+ goto IL_00d8;
+ }
+ TipoTelaInicial valueOrDefault = telaInicial.GetValueOrDefault();
+ if ((int)valueOrDefault != 1)
+ {
+ if ((int)valueOrDefault != 2)
+ {
+ goto IL_00d8;
+ }
+ SetControl(ViewModel.Restricao((TipoRestricao)35) ? typeof(ConsultaOriginalView) : typeof(FinanceiroView));
+ }
+ else
+ {
+ SetControl(ViewModel.Restricao((TipoRestricao)47) ? typeof(ConsultaOriginalView) : typeof(PainelBiView));
+ }
+ goto IL_0145;
+ IL_00d8:
+ SetControl(typeof(ConsultaOriginalView));
+ goto IL_0145;
+ IL_0145:
+ ViewModel.VisibleChaveInstalacao = (Visibility)((!Recursos.Usuario.Administrador) ? 2 : 0);
+ GerarQrCode();
+ if (Recursos.Usuario.IdEmpresa > 1)
+ {
+ ((UIElement)Comissao).Visibility = (Visibility)2;
+ ((UIElement)FinanceiroMenu).Visibility = (Visibility)2;
+ ((UIElement)FechamentoFinanceiro).Visibility = (Visibility)2;
+ ((UIElement)ExtratoConta).Visibility = (Visibility)2;
+ }
+ MainViewModel viewModel = ViewModel;
+ viewModel.VendedorUsuario = await ViewModel.VerificaVinculoVendedor(Recursos.Usuario);
+ await ViewModel.ShowDialogAdvertising();
+ }
+
+ private void TopControls_OnMouseLeftButtonDown(object sender, MouseButtonEventArgs e)
+ {
+ //IL_0008: Unknown result type (might be due to invalid IL or missing references)
+ //IL_005a: Unknown result type (might be due to invalid IL or missing references)
+ //IL_005f: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0064: Unknown result type (might be due to invalid IL or missing references)
+ //IL_006e: Expected O, but got Unknown
+ //IL_001f: 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_0033: Expected O, but got Unknown
+ //IL_0034: Unknown result type (might be due to invalid IL or missing references)
+ //IL_003f: Expected O, but got Unknown
+ //IL_0049: Unknown result type (might be due to invalid IL or missing references)
+ //IL_004e: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0058: Expected O, but got Unknown
+ _buttonClickable = true;
+ if (((FrameworkElement)(Grid)sender).Name == "CloseButton")
+ {
+ ((Panel)(Grid)sender).Background = (Brush)new SolidColorBrush(Colors.Red);
+ 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.Black);
+ }
+ }
+ else
+ {
+ ((Panel)(Grid)sender).Background = (Brush)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);
+ }
+ }
+
+ public void MinimizeButton_Click()
+ {
+ ((Window)this).WindowState = (WindowState)1;
+ }
+
+ public void MaximizeButton_Click()
+ {
+ //IL_0002: Unknown result type (might be due to invalid IL or missing references)
+ ((Window)this).WindowState = (WindowState)(((int)((Window)this).WindowState == 0) ? 2 : 0);
+ }
+
+ public async void CloseButton_Click()
+ {
+ if (!(await ViewModel.ShowMessage("DESEJA REALMENTE FECHAR O SISTEMA?", "SIM", "NÃO")))
+ {
+ return;
+ }
+ if (((DomainBase)Recursos.Usuario).Id > 0)
+ {
+ DateTime networkTime = Funcoes.GetNetworkTime();
+ RegistroLog keyValues = new RegistroLog
+ {
+ Acao = (TipoAcao)0,
+ Usuario = Recursos.Usuario,
+ DataHora = networkTime,
+ Descricao = $"O USUÁRIO {Recursos.Usuario.Nome} SAIU DO SISTEMA, EM {networkTime}.",
+ EntidadeId = ((DomainBase)Recursos.Usuario).Id,
+ Tela = (TipoTela)49,
+ Versao = LoginViewModel.VersaoAtual,
+ NomeMaquina = Environment.MachineName,
+ UsuarioMaquina = Environment.UserName,
+ Ip = Dns.GetHostEntry(Dns.GetHostName()).AddressList.FirstOrDefault((IPAddress ip) => ip.AddressFamily == AddressFamily.InterNetwork)?.ToString()
+ };
+ UnitOfWork commited = Instancia.Commited;
+ try
+ {
+ new BaseServico().SaveLog(keyValues, commited);
+ ((GenericUnitOfWork)commited).Commit();
+ }
+ finally
+ {
+ ((IDisposable)commited)?.Dispose();
+ }
+ }
+ Environment.Exit(0);
+ }
+
+ protected sealed override void OnStateChanged(EventArgs e)
+ {
+ //IL_0002: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0008: Invalid comparison between Unknown and I4
+ //IL_000e: Unknown result type (might be due to invalid IL or missing references)
+ //IL_001f: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0025: Invalid comparison between Unknown and I4
+ //IL_002c: Unknown result type (might be due to invalid IL or missing references)
+ //IL_003d: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0043: Invalid comparison between Unknown and I4
+ //IL_0058: Unknown result type (might be due to invalid IL or missing references)
+ //IL_005e: Invalid comparison between Unknown and I4
+ ((Control)this).BorderThickness = new Thickness((double)(((int)((Window)this).WindowState != 2) ? 1 : 0));
+ WindowChrome.ResizeBorderThickness = new Thickness((double)(((int)((Window)this).WindowState != 2) ? 4 : 0));
+ WindowChrome.CaptionHeight = (((int)((Window)this).WindowState == 2) ? 32 : 29);
+ ViewModel.MaximizeRestore = (((int)((Window)this).WindowState == 2) ? Geometry.Parse((string)Application.Current.Resources[(object)"Restore"]) : Geometry.Parse((string)Application.Current.Resources[(object)"Maximize"]));
+ ((Window)this).OnStateChanged(e);
+ }
+
+ private void HabilitarMenu(bool enable)
+ {
+ ((UIElement)MainMenu).IsEnabled = enable;
+ ((UIElement)Voltar).IsEnabled = enable;
+ }
+
+ private void HabilitarPesquisarClientes(bool enable)
+ {
+ if (ViewModel.Content is ConsultaOriginalView || ViewModel.Content is ClienteView)
+ {
+ ViewModel.EnableSeguros = enable;
+ }
+ }
+
+ private void DefinirNomeTela(string tela)
+ {
+ ViewModel.Tela = tela;
+ }
+
+ private void ContentControl_GotFocus(object sender, RoutedEventArgs e)
+ {
+ MainMenu.Close();
+ }
+
+ private void ContentControl_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
+ {
+ MainMenu.Close();
+ }
+
+ private void SnackbarMessage_ActionClick(object sender, RoutedEventArgs e)
+ {
+ Snackbar.IsActive = false;
+ }
+
+ private void ExpandirMenu()
+ {
+ MainMenu.IsOpen = true;
+ CentralDeNegociosMenu.ContentVisible = (Visibility)0;
+ SegurosMenu.ContentVisible = (Visibility)0;
+ FerramentasMenu.ContentVisible = (Visibility)0;
+ FinanceiroMenu.ContentVisible = (Visibility)0;
+ }
+
+ private void Relatorios_OnClick(object sender, RoutedEventArgs e)
+ {
+ //IL_0001: Unknown result type (might be due to invalid IL or missing references)
+ HamburgerMenuItem val = (HamburgerMenuItem)sender;
+ string opcao = "DOCUMENTO";
+ switch (((FrameworkElement)val).Name)
+ {
+ case "RelatoriosCliente":
+ opcao = "CLIENTE";
+ break;
+ case "RelatoriosParcelas":
+ opcao = "PARCELA";
+ break;
+ case "RelatoriosSinistros":
+ opcao = "SINISTRO";
+ break;
+ case "RelatoriosFechamento":
+ opcao = "FECHAMENTO";
+ break;
+ case "RelatoriosNotas":
+ opcao = "NOTA FISCAL";
+ break;
+ case "RelatoriosTarefas":
+ opcao = "TAREFA";
+ break;
+ case "RelatoriosExtrato":
+ opcao = "EXTRATO";
+ break;
+ case "RelatoriosLogs":
+ opcao = "LOGS";
+ break;
+ }
+ string text = $"VOCÊ ESTÁ EM RELATÓRIOS | VERSÃO GESTOR {ApplicationHelper.Versao}";
+ ((Window)new HosterWindow((ContentControl)(object)new RelatorioView(opcao), "OLÁ, " + Recursos.Usuario.Nome + " - " + Recursos.Empresa.Nome + ", " + text, 1024.0, 600.0, canMaximize: true)).Show();
+ }
+
+ private async void Agenda_OnClick(object sender, RoutedEventArgs e)
+ {
+ if (await ViewModel.VerificarPermissao((TipoTela)34))
+ {
+ ViewModel.ShowDrawer(new AgendaDrawer(), 0, close: false);
+ }
+ }
+
+ private async Task PostMonitor(string tela)
+ {
+ try
+ {
+ if (!ValidationHelper.IsNullOrEmpty(tela))
+ {
+ HttpClient client = new HttpClient();
+ try
+ {
+ ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
+ client.Timeout = TimeSpan.FromSeconds(10.0);
+ TipoTela enumFromEntity = ValidationHelper.GetEnumFromEntity<TipoTela>(tela);
+ string value = $"{ApplicationHelper.IdFornecedor}:{(int)enumFromEntity}:{Funcoes.GetNetworkTime().ToUniversalTime().Ticks}".EncodeBase64();
+ Uri uri = Address.ApiMonitor.Append("screen").AddQuery("screenQuery", value);
+ await client.GetAsync(uri);
+ }
+ finally
+ {
+ ((IDisposable)client)?.Dispose();
+ }
+ }
+ }
+ catch
+ {
+ }
+ }
+
+ private void SetControl(Type tipo, object arguments = null)
+ {
+ //IL_017d: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0183: Expected O, but got Unknown
+ //IL_0221: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0270: Unknown result type (might be due to invalid IL or missing references)
+ //IL_027a: Expected O, but got Unknown
+ Gestor.Application.Actions.Actions.AtualizaBadges();
+ if (ViewModel.Content != null && ViewModel.Content.GetType() == tipo)
+ {
+ return;
+ }
+ lastSearch = null;
+ MainViewModel.ViewAberta = tipo.Name;
+ ViewModel.VisibleSeguros = (Visibility)2;
+ ViewModel.VisibilityVoltar = (Visibility)2;
+ ViewModel.EnableBuscar = false;
+ ViewModel.EnableSeguros = false;
+ UserControl val;
+ switch (tipo.Name)
+ {
+ default:
+ val = (UserControl)Activator.CreateInstance(tipo);
+ break;
+ case "CadastroParceiroView":
+ val = (UserControl)(object)new CadastroParceiroView();
+ break;
+ case "ClienteView":
+ ViewModel.ClienteViewModel = new ClienteViewModel();
+ val = (UserControl)(object)new ClienteView(ViewModel.SelectedCliente, lockInsert: false, ViewModel.ClienteViewModel);
+ ViewModel.VisibilityVoltar = (Visibility)0;
+ ViewModel.VisibleSeguros = (Visibility)0;
+ ViewModel.EnableBuscar = false;
+ ViewModel.EnableSeguros = true;
+ break;
+ case "FinanceiroView":
+ ViewModel.FinanceiroView = new FinanceiroView();
+ val = (UserControl)(object)ViewModel.FinanceiroView;
+ break;
+ case "ApoliceView":
+ val = (UserControl)(object)new ApoliceView(ConsultaViewModel.DocumentoSelecionado, lockInsert: false, invoke: true, Acesso, 0L);
+ ViewModel.VisibilityVoltar = (Visibility)0;
+ ViewModel.VisibleSeguros = (Visibility)0;
+ ViewModel.EnableBuscar = false;
+ ViewModel.EnableSeguros = false;
+ break;
+ case "MenuItensView":
+ val = (UserControl)(object)new MenuItensView(ViewModel.SelectedRamo, (ManutencaoItem)arguments);
+ ViewModel.VisibilityVoltar = (Visibility)0;
+ ViewModel.VisibleSeguros = (Visibility)0;
+ ViewModel.EnableBuscar = false;
+ ViewModel.EnableSeguros = false;
+ break;
+ case "SinistroView":
+ val = (UserControl)(object)new SinistroView();
+ ViewModel.VisibilityVoltar = (Visibility)0;
+ ViewModel.VisibleSeguros = (Visibility)0;
+ ViewModel.EnableBuscar = false;
+ ViewModel.EnableSeguros = false;
+ break;
+ case "DashboardView":
+ if (ViewModel.DashboardViewModel == null)
+ {
+ ViewModel.DashboardViewModel = new DashboardViewModel();
+ }
+ val = (UserControl)(object)new DashboardView(ViewModel.DashboardViewModel);
+ break;
+ case "ConsultaOriginalView":
+ {
+ int num;
+ if (ViewModel.ConsultaViewModel == null && !ViewModel.Restricao((TipoRestricao)108))
+ {
+ Usuario usuario = Recursos.Usuario;
+ num = (((usuario != null) ? usuario.Dashboard : null).GetValueOrDefault() ? 1 : 0);
+ }
+ else
+ {
+ num = 0;
+ }
+ ViewModel.ConsultaViewModel = new ConsultaViewModel();
+ if (num != 0)
+ {
+ ViewModel.DashboardViewModel = new DashboardViewModel();
+ val = (UserControl)(object)new DashboardView(ViewModel.DashboardViewModel);
+ }
+ else
+ {
+ val = (UserControl)(object)new ConsultaOriginalView(ViewModel.ConsultaViewModel);
+ }
+ ViewModel.VisibleSeguros = (Visibility)0;
+ ViewModel.EnableBuscar = true;
+ ViewModel.EnableSeguros = true;
+ break;
+ }
+ }
+ ShowHelp(tipo.Name);
+ DefinirNomeTela((((FrameworkElement)val).Tag == null) ? "" : ((FrameworkElement)val).Tag.ToString());
+ PostMonitor(tipo.Name);
+ (((FrameworkElement)ContentControl).DataContext as IDisposable)?.Dispose();
+ ViewModel.Content = val;
+ }
+
+ private async void ShowHelp(string name)
+ {
+ if (!(await ViewModel.VerificarRestricao((TipoRestricao)61, root: true, showmessage: false)))
+ {
+ ((UIElement)HelpPopup).Visibility = (Visibility)2;
+ return;
+ }
+ TipoTela? val = Funcoes.ConvertTela(name);
+ bool flag = val.HasValue && val != (TipoTela?)0;
+ ((UIElement)HelpPopup).Visibility = (Visibility)((!flag) ? 2 : 0);
+ ViewModel.TelaAberta = val;
+ }
+
+ private async Task<bool> VerificarLicenca(Produto? produto = null, TipoTela? tela = null, TipoRestricao? restricao = null)
+ {
+ string text = await ViewModel.VerificarAcesso(((DomainBase)Recursos.Usuario).Id);
+ if (((DomainBase)Recursos.Usuario).Id != 0L && text != null)
+ {
+ await ViewModel.ShowMessage(text + " O SISTEMA SERÁ ENCERRADO.");
+ Environment.Exit(0);
+ return false;
+ }
+ bool flag;
+ if ((int)produto.GetValueOrDefault() != 83 || (int)produto.GetValueOrDefault() == 86)
+ {
+ flag = produto.HasValue;
+ if (flag)
+ {
+ flag = !(await ViewModel.VerificarContrato(produto.Value, message: true, root: true));
+ }
+ if (flag)
+ {
+ return false;
+ }
+ }
+ flag = restricao.HasValue;
+ if (flag)
+ {
+ flag = !(await ViewModel.VerificarRestricao(restricao.Value, root: true));
+ }
+ if (flag)
+ {
+ return false;
+ }
+ flag = tela.HasValue;
+ if (flag)
+ {
+ flag = !(await ViewModel.VerificarPermissao(tela.Value, root: true));
+ }
+ if (flag)
+ {
+ return false;
+ }
+ if ((int)tela.GetValueOrDefault() == 58)
+ {
+ if (!Recursos.Usuario.Administrador && ((DomainBase)Recursos.Usuario).Id > 0)
+ {
+ await ViewModel.ShowMessage("VOCÊ PRECISA SER ADMINISTRADOR PARA ACESSAR ESSA TELA.");
+ return false;
+ }
+ if ((await ViewModel.VerificaVinculoVendedor(Recursos.Usuario)).Count > 0)
+ {
+ await ViewModel.ShowMessage("PARA ACESSAR ESSA TELA, REMOVA QUALQUER VÍNCULO DE VENDEDOR DO SEU USUÁRIO.");
+ return false;
+ }
+ }
+ flag = (int)restricao.GetValueOrDefault() == 44;
+ if (flag)
+ {
+ flag = !(await ViewModel.VerificarPermissao((TipoTela)60, root: true));
+ }
+ if (flag)
+ {
+ return false;
+ }
+ return true;
+ }
+
+ private async void FinanceiroMenu_OnClick(object sender, RoutedEventArgs e)
+ {
+ if (Recursos.Usuario.IdEmpresa > 1)
+ {
+ await ViewModel.ShowMessage("SOMENTE A MATRIZ POSSUI ACESSO AO FINANCEIRO.");
+ return;
+ }
+ bool num = (MainMenu.IsOpen && ViewModel.Content == null) || ViewModel.Content.GetType() != typeof(FinanceiroView);
+ SetControl(typeof(FinanceiroView));
+ if (num)
+ {
+ ((HamburgerMenuItem)sender).ContentVisible = (Visibility)0;
+ }
+ }
+
+ private async void Fornecedor_OnClick(object sender, RoutedEventArgs e)
+ {
+ if (Recursos.Usuario.IdEmpresa > 1)
+ {
+ await ViewModel.ShowMessage("SOMENTE A MATRIZ POSSUI ACESSO AO FINANCEIRO.");
+ }
+ else
+ {
+ SetControl(typeof(FornecedorView));
+ }
+ }
+
+ private async void Conta_OnClick(object sender, RoutedEventArgs e)
+ {
+ if (Recursos.Usuario.IdEmpresa > 1)
+ {
+ await ViewModel.ShowMessage("SOMENTE A MATRIZ POSSUI ACESSO AO FINANCEIRO.");
+ }
+ else
+ {
+ SetControl(typeof(BancosContasView));
+ }
+ }
+
+ private async void Plano_OnClick(object sender, RoutedEventArgs e)
+ {
+ if (Recursos.Usuario.IdEmpresa > 1)
+ {
+ await ViewModel.ShowMessage("SOMENTE A MATRIZ POSSUI ACESSO AO FINANCEIRO.");
+ }
+ else
+ {
+ SetControl(typeof(PlanosView));
+ }
+ }
+
+ private async void Centro_OnClick(object sender, RoutedEventArgs e)
+ {
+ if (Recursos.Usuario.IdEmpresa > 1)
+ {
+ await ViewModel.ShowMessage("SOMENTE A MATRIZ POSSUI ACESSO AO FINANCEIRO.");
+ }
+ else
+ {
+ SetControl(typeof(CentroDeCustoView));
+ }
+ }
+
+ private async void AcessarTela(TipoTela tela, string subTela = "")
+ {
+ //IL_0016: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0017: Unknown result type (might be due to invalid IL or missing references)
+ switch (tela - 1)
+ {
+ default:
+ if ((int)tela == 21)
+ {
+ Consultar_OnClick(SegurosMenu, new RoutedEventArgs());
+ }
+ break;
+ case 6:
+ if (await VerificarDocumento(Sinistros.Produto, Sinistros.Tela))
+ {
+ Sinistros_OnClick(Clientes, new RoutedEventArgs());
+ }
+ break;
+ case 0:
+ if (await VerificarLicenca(Clientes.Produto, Clientes.Tela))
+ {
+ Clientes_OnClick(Clientes, new RoutedEventArgs());
+ }
+ break;
+ case 1:
+ {
+ bool flag = (int)Acesso > 0;
+ if (flag)
+ {
+ flag = !(await VerificarDocumento(Apolices.Produto, Apolices.Tela));
+ }
+ bool flag2 = flag;
+ if (!flag2)
+ {
+ flag2 = !(await VerificarCliente(Apolices.Produto, Apolices.Tela));
+ }
+ if (!flag2)
+ {
+ switch (subTela)
+ {
+ default:
+ Acesso = (AcessoApolice)0;
+ break;
+ case "Parcela":
+ Acesso = (AcessoApolice)1;
+ break;
+ case "Renovar":
+ Acesso = (AcessoApolice)3;
+ break;
+ case "Endossar":
+ Acesso = (AcessoApolice)2;
+ break;
+ }
+ Apolices_OnClick(Apolices, new RoutedEventArgs());
+ }
+ break;
+ }
+ case 2:
+ if (await VerificarDocumento(Itens.Produto, Itens.Tela))
+ {
+ switch (subTela)
+ {
+ default:
+ ManutencaoItem = null;
+ break;
+ case "Renovação":
+ ManutencaoItem = new ManutencaoItem
+ {
+ Documento = ConsultaViewModel.DocumentoRenovado,
+ Tipo = (TipoManutencao)0
+ };
+ ConsultaViewModel.DocumentoRenovado = null;
+ break;
+ case "Endosso":
+ ManutencaoItem = new ManutencaoItem
+ {
+ Documento = ConsultaViewModel.DocumentoSelecionado,
+ Tipo = (TipoManutencao)1
+ };
+ break;
+ case "Manutencao":
+ ManutencaoItem = new ManutencaoItem
+ {
+ Documento = ConsultaViewModel.DocumentoSelecionado,
+ Tipo = (TipoManutencao)2
+ };
+ break;
+ }
+ Itens_OnClick(Itens, new RoutedEventArgs());
+ }
+ break;
+ case 3:
+ case 4:
+ case 5:
+ break;
+ }
+ }
+
+ private void Consultar_OnClick(object sender, RoutedEventArgs e)
+ {
+ ViewModel.PermissaoWhatsapp = ViewModel.Restricao((TipoRestricao)32);
+ SetControl(typeof(ConsultaOriginalView));
+ }
+
+ private void AutoCompleteBox_Populating(object sender, PopulatingEventArgs e)
+ {
+ //IL_0087: Unknown result type (might be due to invalid IL or missing references)
+ //IL_008d: Invalid comparison between Unknown and I4
+ //IL_00e3: Unknown result type (might be due to invalid IL or missing references)
+ if (e.Parameter.Trim().Length < 3)
+ {
+ return;
+ }
+ e.Cancel = true;
+ lastSearch = e.Parameter.Trim();
+ ((UIElement)LoadingAutoComplete).Visibility = (Visibility)0;
+ List<long> vinculos = ViewModel.VendedorUsuario.Select((VendedorUsuario vu) => ((DomainBase)vu.Vendedor).Id).ToList();
+ if ((int)ViewModel.SelectedFiltroCliente != 1)
+ {
+ ViewModel.SelectedFiltroCliente = (TipoFiltroCliente)(Regex.Replace(e.Parameter.Trim(), "[.\\-\\/]", "").All(char.IsDigit) ? 2 : 0);
+ }
+ ViewModel.BuscarCliente(e.Parameter.Trim(), vinculos, ViewModel.SelectedFiltroCliente).ContinueWith(delegate(Task<List<Cliente>> searchResult)
+ {
+ //IL_0036: 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)
+ ((UIElement)LoadingAutoComplete).Visibility = (Visibility)2;
+ if (searchResult.Result != null)
+ {
+ ViewModel.ClientesEncontrados = searchResult.Result;
+ AutoCompleteBox val = (AutoCompleteBox)sender;
+ val.ItemsSource = searchResult.Result;
+ val.PopulateComplete();
+ }
+ }, TaskScheduler.FromCurrentSynchronizationContext());
+ }
+
+ private void AutoCompleteNomeBox_Populating(object sender, PopulatingEventArgs e)
+ {
+ //IL_011b: Unknown result type (might be due to invalid IL or missing references)
+ //IL_008a: Unknown result type (might be due to invalid IL or missing references)
+ //IL_008f: Unknown result type (might be due to invalid IL or missing references)
+ if (e.Parameter.Trim().Length < 3)
+ {
+ return;
+ }
+ e.Cancel = true;
+ if (lastSearch != null && lastSearchTime.HasValue && e.Parameter.Trim().Contains(lastSearch) && (DateTime.Now - lastSearchTime.Value).TotalSeconds < 10.0)
+ {
+ AutoCompleteBox val = (AutoCompleteBox)sender;
+ val.ItemsSource = ViewModel.FiltrarClientes(e.Parameter.Trim());
+ val.PopulateComplete();
+ return;
+ }
+ lastSearch = e.Parameter.Trim();
+ ((UIElement)LoadingAutoComplete).Visibility = (Visibility)0;
+ List<long> vinculos = ViewModel.VendedorUsuario.Select((VendedorUsuario vu) => ((DomainBase)vu.Vendedor).Id).ToList();
+ ViewModel.BuscarCliente(e.Parameter.Trim(), vinculos, ViewModel.SelectedFiltroCliente).ContinueWith(delegate(Task<List<Cliente>> searchResult)
+ {
+ //IL_0036: 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)
+ ((UIElement)LoadingAutoComplete).Visibility = (Visibility)2;
+ if (searchResult.Result != null)
+ {
+ ViewModel.ClientesEncontrados = searchResult.Result;
+ AutoCompleteBox val2 = (AutoCompleteBox)sender;
+ val2.ItemsSource = searchResult.Result;
+ val2.PopulateComplete();
+ }
+ }, TaskScheduler.FromCurrentSynchronizationContext());
+ }
+
+ private async void PesquisaAvancada_OnClick(object sender, RoutedEventArgs e)
+ {
+ PesquisaAvancada pesquisa = await ViewModel.ShowPesquisaAvancadaDialog();
+ if (pesquisa != null)
+ {
+ ViewModel.Invoke = false;
+ ViewModel.SelectedCliente = null;
+ ViewModel.SelectedStatus = pesquisa.Status;
+ ViewModel.PesquisaAvançada = true;
+ Cliente val = await new ClienteServico().BuscarCliente(pesquisa.IdCliente);
+ ViewModel.ClientesFiltrados = new List<Cliente> { val };
+ ViewModel.SelectedCliente = val;
+ ViewModel.PesquisaAvançada = false;
+ MainViewModel.ClienteSelecionado = ViewModel.SelectedCliente;
+ ViewModel.Pesquisa = ViewModel.SelectedCliente.NomeSocial;
+ ViewModel.Invoke = true;
+ ((ConsultaOriginalView)ViewModel.Content).Pesquisar(pesquisa);
+ }
+ }
+
+ private async void WhatsAppMessage_Click(object sender, RoutedEventArgs e)
+ {
+ if (ViewModel.Restricao((TipoRestricao)32))
+ {
+ await ViewModel.ShowMessage("VOCÊ NÃO POSSUI PERMISSÃO PARA ACESSAR O WHATSAPP");
+ return;
+ }
+ bool flag = await ViewModel.ShowMessage("DESEJA ENVIAR SEU CARTÃO DE VISITA ELETRÔNICO VIA WHATSAPP?", "SIM", "NÃO");
+ string text = $"Prezado {ViewModel.SelectedCliente.Nome} abaixo o link para meu Cartão de Visita.{Environment.NewLine}{Environment.NewLine}{Address.Card}{((DomainBase)Recursos.Usuario).Id.GeraCartaoVisita()}";
+ Button val = (Button)sender;
+ if (((FrameworkElement)val).DataContext != null)
+ {
+ object dataContext = ((FrameworkElement)val).DataContext;
+ Contato val2 = (Contato)((dataContext is Contato) ? dataContext : null);
+ if (val2 != null && !("55" + val2.Numero.Clear()).EnviarWhatsapp((!flag) ? null : text))
+ {
+ await ViewModel.ShowMessage("HOUVE UM PROBLEMA AO ABRIR LINK DO WHATSAPP, O LINK FOI COPIADO EM SUA MAQUINA, BASTA ABRIR O NAVEGADOR DE INTERNET E COLAR NA BARRA DE ENDEREÇOS");
+ }
+ }
+ }
+
+ private void CopyTelefoneToClipBoard_Click(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
+ Button val = (Button)sender;
+ if (((FrameworkElement)val).DataContext != null)
+ {
+ object dataContext = ((FrameworkElement)val).DataContext;
+ Contato val2 = (Contato)((dataContext is Contato) ? dataContext : null);
+ if (val2 != null)
+ {
+ val2.Numero.CopyToClipboard();
+ ViewModel.ToggleSnackBar("COPIADO - " + val2.Numero);
+ }
+ }
+ }
+
+ private void AutoCompleteCliente_OnGotKeyboardFocus(object sender, KeyboardFocusChangedEventArgs e)
+ {
+ //IL_0001: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0007: Expected O, but got Unknown
+ AutoCompleteBox val = (AutoCompleteBox)sender;
+ MainMenu.Close();
+ lastKey = (string.IsNullOrEmpty(val.Text) ? null : ((val.Text.ToArray().LastOrDefault().ToString() == " ") ? new Key?((Key)18) : null));
+ }
+
+ private void Apolices_OnClick(object sender, RoutedEventArgs e)
+ {
+ if (MainViewModel.ClienteSelecionado != null)
+ {
+ SetControl(typeof(ApoliceView));
+ Acesso = (AcessoApolice)0;
+ }
+ }
+
+ private async void AcessarHoster(PipeMessageResult pipeMessage)
+ {
+ if ((int)pipeMessage.Funcao == 0)
+ {
+ Documento documento = await new ApoliceServico().BuscarApoliceAsync(long.Parse(pipeMessage.Json));
+ HosterWindow hoster;
+ ((DispatcherObject)this).Dispatcher.Invoke((Action)delegate
+ {
+ ApoliceView control = new ApoliceView(documento, lockInsert: true, invoke: false, (AcessoApolice)0, 0L);
+ hoster = new HosterWindow((ContentControl)(object)control, "CADASTRO DE APÓLICES - " + documento.Controle.Cliente.Nome);
+ ((Window)hoster).Show();
+ });
+ }
+ }
+
+ private void Itens_OnClick(object sender, RoutedEventArgs e)
+ {
+ if (MainViewModel.ClienteSelecionado != null)
+ {
+ SetControl(typeof(MenuItensView), ManutencaoItem);
+ }
+ }
+
+ private void Clientes_OnClick(object sender, RoutedEventArgs e)
+ {
+ SetControl(typeof(ClienteView));
+ }
+
+ private async Task<bool> VerificarCliente(Produto? produto, TipoTela? tela)
+ {
+ if (MainViewModel.ClienteSelecionado == null || ((DomainBase)MainViewModel.ClienteSelecionado).Id == 0L)
+ {
+ return false;
+ }
+ return await VerificarLicenca(produto, tela);
+ }
+
+ private async Task<bool> VerificarDocumento(Produto? produto, TipoTela? tela)
+ {
+ if (ConsultaViewModel.DocumentoSelecionado == null || ((DomainBase)ConsultaViewModel.DocumentoSelecionado).Id == 0L)
+ {
+ return false;
+ }
+ return await VerificarLicenca(produto, tela);
+ }
+
+ private void Sinistros_OnClick(object sender, RoutedEventArgs e)
+ {
+ if (MainViewModel.ClienteSelecionado != null)
+ {
+ SetControl(typeof(SinistroView));
+ }
+ }
+
+ private void Seguradoras_OnClick(object sender, RoutedEventArgs e)
+ {
+ SetControl(typeof(SeguradoraView));
+ }
+
+ private void Ramos_OnClick(object sender, RoutedEventArgs e)
+ {
+ SetControl(typeof(RamoView));
+ }
+
+ private void Produtos_OnClick(object sender, RoutedEventArgs e)
+ {
+ SetControl(typeof(ProdutoView));
+ }
+
+ private void Protocolos_OnClick(object sender, RoutedEventArgs e)
+ {
+ SetControl(typeof(ProtocoloDocumentosView));
+ }
+
+ private void Qualificacao_OnClick(object sender, RoutedEventArgs e)
+ {
+ SetControl(typeof(QualificacaoView));
+ }
+
+ private void Status_OnClick(object sender, RoutedEventArgs e)
+ {
+ SetControl(typeof(StatusView));
+ }
+
+ private void Estipulantes_OnClick(object sender, RoutedEventArgs e)
+ {
+ SetControl(typeof(EstipulanteView));
+ }
+
+ private void Vendedores_OnClick(object sender, RoutedEventArgs e)
+ {
+ SetControl(typeof(VendedorView));
+ }
+
+ private void TipoVendedor_OnClick(object sender, RoutedEventArgs e)
+ {
+ SetControl(typeof(TipoVendedorView));
+ }
+
+ private void Usuarios_OnClick(object sender, RoutedEventArgs e)
+ {
+ SetControl(typeof(UsuarioView));
+ }
+
+ private void Emails_OnClick(object sender, RoutedEventArgs e)
+ {
+ SetControl(typeof(CadastroEmailView));
+ }
+
+ private void Manutencao_OnClick(object sender, RoutedEventArgs e)
+ {
+ SetControl(typeof(ManutencaoPagamentosView));
+ }
+
+ private void Empresa_OnClick(object sender, RoutedEventArgs e)
+ {
+ SetControl(typeof(EmpresaView));
+ }
+
+ private void Socio_OnClick(object sender, RoutedEventArgs e)
+ {
+ SetControl(typeof(SocioView));
+ }
+
+ private void Parceiro_OnClick(object sender, RoutedEventArgs e)
+ {
+ SetControl(typeof(CadastroParceiroView));
+ }
+
+ private async void ImportPdf_OnClick(object sender, RoutedEventArgs e)
+ {
+ Parameters val = new Parameters();
+ val.Beta = false;
+ val.Type = 4;
+ val.Application = "Agger.ImportPDF.exe";
+ val.Directory = "Agger.Import";
+ val.Arguments = $"{((DomainBase)Recursos.Empresa).Id} {((DomainBase)Recursos.Usuario).Id} NOVOGESTOR PERFIL:{ApplicationHelper.Subkey} SERIAL:{ApplicationHelper.NumeroSerial}";
+ val.Run = true;
+ Parameters parameters = val;
+ await new ArquivoDigitalServico().Criar();
+ ((Window)new DownloadWindow(parameters)).Show();
+ }
+
+ private async void Comissao_OnClick(object sender, RoutedEventArgs e)
+ {
+ if (Recursos.Usuario.IdEmpresa > 1)
+ {
+ await ViewModel.ShowMessage("SOMENTE A MATRIZ POSSUI ACESSO A TELA DE COMISSÃO AUTOMÁTICA.");
+ }
+ else
+ {
+ SetControl(typeof(ComissaoView));
+ }
+ }
+
+ private void Voltar_OnClick(object sender, RoutedEventArgs e)
+ {
+ VoltarAction();
+ }
+
+ private void VoltarAction()
+ {
+ //IL_000e: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0018: Expected O, but got Unknown
+ ManutencaoItem = null;
+ Consultar_OnClick(SegurosMenu, new RoutedEventArgs());
+ }
+
+ private void CriticaPdf_OnClick(object sender, RoutedEventArgs e)
+ {
+ SetControl(typeof(CriticaApoliceView));
+ }
+
+ private void IniciarAggilizador()
+ {
+ //IL_000c: 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_0018: Unknown result type (might be due to invalid IL or missing references)
+ //IL_001f: Unknown result type (might be due to invalid IL or missing references)
+ //IL_002a: 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_0063: Unknown result type (might be due to invalid IL or missing references)
+ //IL_006f: Expected O, but got Unknown
+ //IL_0074: Unknown result type (might be due to invalid IL or missing references)
+ //IL_007a: Expected O, but got Unknown
+ //IL_00f6: Unknown result type (might be due to invalid IL or missing references)
+ //IL_00fb: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0102: Unknown result type (might be due to invalid IL or missing references)
+ //IL_010a: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0115: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0120: Unknown result type (might be due to invalid IL or missing references)
+ //IL_014f: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0158: Expected O, but got Unknown
+ //IL_015d: Unknown result type (might be due to invalid IL or missing references)
+ StringBuilder stringBuilder = new StringBuilder();
+ StringBuilder stringBuilder2 = new StringBuilder();
+ ((Window)new DownloadWindow(new Parameters
+ {
+ Beta = false,
+ Type = 4,
+ Application = "Agger.ImportPDF.exe",
+ Directory = "Agger.Import",
+ Arguments = $"{((DomainBase)Recursos.Empresa).Id} {((DomainBase)Recursos.Usuario).Id} NOVOGESTOR",
+ Run = false
+ })).Show();
+ Token val = new Token();
+ long num = ((DomainBase)Recursos.Usuario).Id;
+ if (num == 0L)
+ {
+ Usuario? obj = ((IEnumerable<Usuario>)Recursos.Usuarios).FirstOrDefault((Func<Usuario, bool>)((Usuario x) => x.PermissaoAggilizador == 1));
+ num = ((obj != null) ? ((DomainBase)obj).Id : 0);
+ }
+ stringBuilder.Append(val.AggerEncrypt(num.ToString()));
+ if (((DomainBase)Recursos.Usuario).Id != 0L)
+ {
+ stringBuilder2.Append(val.AggerEncrypt(Recursos.Usuario.TokenSso));
+ }
+ Parameters parameters = new Parameters
+ {
+ Beta = false,
+ Type = 88,
+ Application = "Instalador.exe",
+ Directory = "",
+ Arguments = string.Format("/CALCULATION {0} {1}", stringBuilder, (((DomainBase)Recursos.Usuario).Id == 0L) ? "" : $" /SSO {stringBuilder2}"),
+ Run = true
+ };
+ new RegistryHelper("").Write<string>("NSP", EncryptionHelper.Encrypt(ApplicationHelper.NumeroSerial), true);
+ try
+ {
+ ((Window)new DownloadWindow(parameters)).Show();
+ }
+ catch (Exception)
+ {
+ }
+ }
+
+ private async void Aggilizador_OnClick(object sender, RoutedEventArgs e)
+ {
+ if (!Recursos.Usuario.PermissaoAggilizador.HasValue || Recursos.Usuario.PermissaoAggilizador == 0)
+ {
+ await ViewModel.ShowMessage("VOCÊ NÃO POSSUI PERMISSÃO PARA ACESSAR O AGGILIZADOR");
+ }
+ else if (LicenseHelper.Produtos.Any((Licenca produto) => (int)produto.Produto == 91))
+ {
+ Process.Start(Address.CalculoWeb.ToString());
+ if (LicenseHelper.Produtos.Any((Licenca produto) => (int)produto.Produto != 77))
+ {
+ IniciarAggilizador();
+ }
+ }
+ else
+ {
+ IniciarAggilizador();
+ }
+ }
+
+ private void Prospeccao_OnClick(object sender, RoutedEventArgs e)
+ {
+ SetControl(typeof(ProspeccaoView));
+ }
+
+ private void Notas_OnClick(object sender, RoutedEventArgs e)
+ {
+ string text = $"VOCÊ ESTÁ EM CADASTRO DE NOTAS | VERSÃO GESTOR {ApplicationHelper.Versao}";
+ ((Window)new HosterWindow((ContentControl)(object)new NotasView(), "OLÁ, " + Recursos.Usuario.Nome + " - " + Recursos.Empresa.Nome + ", " + text)).Show();
+ }
+
+ private async void Tarefas_OnClick(object sender, RoutedEventArgs e)
+ {
+ if (await ViewModel.VerificarPermissao((TipoTela)38))
+ {
+ ViewModel.MensagemTarefasVisibility = (Visibility)2;
+ AbrirTarefas();
+ }
+ }
+
+ private static void AbrirTarefas()
+ {
+ string text = $"VOCÊ ESTÁ EM CONSULTA DE TAREFAS | VERSÃO GESTOR {ApplicationHelper.Versao}";
+ ((Window)new HosterWindow((ContentControl)(object)new TarefaView(), "OLÁ, " + Recursos.Usuario.Nome + " - " + Recursos.Empresa.Nome + ", " + text)).Show();
+ }
+
+ private void PainelBi_OnClick(object sender, RoutedEventArgs e)
+ {
+ SetControl(typeof(PainelBiView));
+ ViewModel.VisibleBi = (Visibility)0;
+ }
+
+ private async void Atendimentos_OnClick(object sender, RoutedEventArgs e)
+ {
+ if (ViewModel.Restricao((TipoRestricao)54))
+ {
+ await ViewModel.ShowMessage("VOCÊ NÃO POSSUI PERMISSÃO PARA ATENDIMENTOS.");
+ }
+ else
+ {
+ AbrirAtendimento();
+ }
+ }
+
+ private void AbrirAtendimento()
+ {
+ if (Recursos.Usuario != null && ((DomainBase)Recursos.Usuario).Id != 0L)
+ {
+ string arg = (ValidationHelper.IsNotNullOrEmpty(Recursos.Usuario.SsoId) ? $"{Recursos.Usuario.SsoId}:{((DomainBase)Recursos.Usuario).Id}:SSO" : EncryptionHelper.Encrypt(Recursos.Usuario.Senha));
+ string value = EncryptionHelper.Encrypt($"{ApplicationHelper.IdFornecedor}:{Recursos.Usuario.Login}:{arg}");
+ Process.Start(Address.CentralAtendimento.Append("Acessar").AddQuery("id", value).ToString());
+ }
+ }
+
+ private async void BoletosNotas_OnClick(object sender, RoutedEventArgs e)
+ {
+ if (ViewModel.Restricao((TipoRestricao)55))
+ {
+ await ViewModel.ShowMessage("VOCÊ NÃO POSSUI PERMISSÃO PARA BOLETOS E NOTAS.");
+ }
+ else
+ {
+ AbrirAtendimento();
+ }
+ }
+
+ private async void Contratos_OnClick(object sender, RoutedEventArgs e)
+ {
+ if (ViewModel.Restricao((TipoRestricao)56))
+ {
+ await ViewModel.ShowMessage("VOCÊ NÃO POSSUI PERMISSÃO PARA CONTRATOS.");
+ }
+ else
+ {
+ AbrirAtendimento();
+ }
+ }
+
+ private async void Instalacao_OnClick(object sender, RoutedEventArgs e)
+ {
+ if (ViewModel.Restricao((TipoRestricao)57))
+ {
+ await ViewModel.ShowMessage("VOCÊ NÃO POSSUI PERMISSÃO PARA INSTALAÇÕES.");
+ }
+ else
+ {
+ AbrirAtendimento();
+ }
+ }
+
+ private async void AcessoRemoto_OnClick(object sender, RoutedEventArgs e)
+ {
+ if (ViewModel.Restricao((TipoRestricao)58))
+ {
+ await ViewModel.ShowMessage("VOCÊ NÃO POSSUI PERMISSÃO PARA ACESSO REMOTO.");
+ return;
+ }
+ string text = "c:\\AggerSeguros\\Remoto.exe";
+ if (File.Exists(text))
+ {
+ Process.Start(text);
+ return;
+ }
+ ((Window)new DownloadWindow(new Parameters
+ {
+ Beta = false,
+ Type = 99,
+ Application = "Remoto.exe",
+ Directory = "",
+ Run = true
+ })).Show();
+ }
+
+ private void Recibo_OnClick(object sender, RoutedEventArgs e)
+ {
+ SetControl(typeof(ReciboView));
+ }
+
+ private async void Assinatura_OnClick(object sender, RoutedEventArgs e)
+ {
+ if (await ViewModel.ShowMessage("DESEJA ABRIR O SIGGNER PARA ASSINATURAS ELETRÔNICAS?", "SIM", "NÃO"))
+ {
+ string text = (new PipeServer().CreateServer(PipeName) ? (":" + PipeName) : "");
+ string arguments = new Token().Encrypt(string.Format("{0}:{1}:{2}:{3}:{4}", ApplicationHelper.NumeroSerial, ApplicationHelper.IdFornecedor, ((DomainBase)Recursos.Usuario).Id, ApplicationHelper.Beta ? "1" : "0", text));
+ ((Window)new DownloadWindow(new Parameters
+ {
+ Beta = ApplicationHelper.Beta,
+ Type = 8,
+ Application = "Assinador.Application.exe",
+ Directory = "Assinador.Application",
+ Arguments = arguments,
+ Run = true
+ })).Show();
+ }
+ }
+
+ private void Epic_OnClick(object sender, RoutedEventArgs e)
+ {
+ //IL_0000: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0005: Unknown result type (might be due to invalid IL or missing references)
+ //IL_000c: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0013: Unknown result type (might be due to invalid IL or missing references)
+ //IL_001e: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0029: Unknown result type (might be due to invalid IL or missing references)
+ //IL_004d: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0059: Expected O, but got Unknown
+ ((Window)new DownloadWindow(new Parameters
+ {
+ Beta = false,
+ Type = 5,
+ Application = "Agger.Epic.exe",
+ Directory = "Agger.Epic",
+ Arguments = $"{ApplicationHelper.NumeroSerial}|{((DomainBase)Recursos.Usuario).Id}",
+ Run = true
+ })).Show();
+ }
+
+ private async void MainWindow_OnInitialized(object sender, EventArgs e)
+ {
+ WindowInteropHelper val = new WindowInteropHelper((Window)(object)this);
+ val.EnsureHandle();
+ HwndSource obj = HwndSource.FromHwnd(val.Handle);
+ if (obj != null)
+ {
+ obj.AddHook(new HwndSourceHook(WindowProc));
+ }
+ ExpandirMenu();
+ await new BaseServico().Sincronizar(Funcoes.GetNetworkTime());
+ if (Recursos.Usuario.Administrador)
+ {
+ MainViewModel viewModel = ViewModel;
+ viewModel.Boletos = await Connection.Get<List<Payment>>($"Billet/{ApplicationHelper.IdFornecedor}");
+ if (ViewModel.Boletos != null && ViewModel.Boletos.Any((Payment x) => x.Vencimento <= Funcoes.GetNetworkTime().Date.AddDays(7.0)))
+ {
+ ((UIElement)BoletoPopup).Visibility = (Visibility)0;
+ }
+ }
+ }
+
+ private void CopiarChave_OnClick(object sender, RoutedEventArgs e)
+ {
+ if (!string.IsNullOrEmpty(ApplicationHelper.NumeroSerial))
+ {
+ EncryptionHelper.Encrypt($"{ApplicationHelper.NumeroSerial} {Funcoes.GetNetworkTime().Date:d}").CopyToClipboard();
+ ViewModel.ToggleSnackBar("CHAVE DE INSTALAÇÃO COPIADA!");
+ }
+ }
+
+ private void Medalha_OnMouseDown(object sender, MouseButtonEventArgs e)
+ {
+ ViewModel.Medalha();
+ }
+
+ private void MainWindow_OnSizeChanged(object sender, SizeChangedEventArgs e)
+ {
+ ViewModel.HeadMaxWidth = 300.0 + ((FrameworkElement)this).ActualWidth - 1024.0;
+ }
+
+ private async void HelpPopup_Opened(object sender, RoutedEventArgs e)
+ {
+ await ViewModel.CarregarAjuda();
+ }
+
+ private void Play_Click(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)
+ //IL_001f: Expected O, but got Unknown
+ Button val = (Button)sender;
+ if (val != null && ((FrameworkElement)val).DataContext != null)
+ {
+ AjudaTela val2 = (AjudaTela)((FrameworkElement)val).DataContext;
+ string text = "";
+ if (val2.Minuto > 0 || val2.Segundo > 0)
+ {
+ text = $"&start={val2.Minuto * 60 + val2.Segundo}";
+ }
+ Process.Start(val2.Link + text);
+ }
+ }
+
+ private void Fechar_OnClick(object sender, RoutedEventArgs e)
+ {
+ HelpPopup.IsPopupOpen = !HelpPopup.IsPopupOpen;
+ }
+
+ private void CopyLink_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)
+ //IL_001f: Expected O, but got Unknown
+ Button val = (Button)sender;
+ if (val != null && ((FrameworkElement)val).DataContext != null)
+ {
+ AjudaTela val2 = (AjudaTela)((FrameworkElement)val).DataContext;
+ string text = "";
+ if (val2.Minuto > 0 || val2.Segundo > 0)
+ {
+ text = $"&start={val2.Minuto * 60 + val2.Segundo}";
+ }
+ (val2.Link + text).CopyToClipboard();
+ ViewModel.ToggleSnackBar("LINK COPIADO");
+ }
+ }
+
+ private async void ExtratoConta_OnClick(object sender, RoutedEventArgs e)
+ {
+ if (Recursos.Usuario.IdEmpresa > 1)
+ {
+ await ViewModel.ShowMessage("SOMENTE A MATRIZ POSSUI ACESSO AO FINANCEIRO.");
+ }
+ else
+ {
+ ((Window)new ExtratoWindow(0L)).Show();
+ }
+ }
+
+ private async void FechamentoFinanceiro_OnClick(object sender, RoutedEventArgs e)
+ {
+ if (Recursos.Usuario.IdEmpresa > 1)
+ {
+ await ViewModel.ShowMessage("SOMENTE A MATRIZ POSSUI ACESSO AO FINANCEIRO.");
+ return;
+ }
+ string text = $"VOCÊ ESTÁ EM FECHAMENTO FINANCEIRO | VERSÃO GESTOR {ApplicationHelper.Versao}";
+ ((Window)new HosterWindow((ContentControl)(object)new FechamentoFinanceiroView(), "OLÁ, " + Recursos.Usuario.Nome + " - " + Recursos.Empresa.Nome + ", " + text, 1024.0, 600.0, canMaximize: true)).Show();
+ }
+
+ private void OcultarAjuda_OnClick(object sender, RoutedEventArgs e)
+ {
+ ((UIElement)HelpPopup).Visibility = (Visibility)2;
+ }
+
+ private void OcultarTarefas_OnClick(object sender, RoutedEventArgs e)
+ {
+ ((UIElement)TarefaPopup).Visibility = (Visibility)2;
+ }
+
+ private void OcultarBoleto_OnClick(object sender, RoutedEventArgs e)
+ {
+ ((UIElement)BoletoPopup).Visibility = (Visibility)2;
+ }
+
+ private void Boleto_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)
+ //IL_001f: Expected O, but got Unknown
+ Button val = (Button)sender;
+ if (val != null && ((FrameworkElement)val).DataContext != null)
+ {
+ Payment val2 = (Payment)((FrameworkElement)val).DataContext;
+ Process.Start($"{Address.ApiBoletoAgger}billet/id/{val2.Id}");
+ }
+ }
+
+ private void TipoTarefa_OnClick(object sender, RoutedEventArgs e)
+ {
+ SetControl(typeof(TipoTarefaView));
+ }
+
+ private void StatusProspeccao_OnClick(object sender, RoutedEventArgs e)
+ {
+ SetControl(typeof(StatusProspeccaoView));
+ }
+
+ private void NotaFiscal_OnClick(object sender, RoutedEventArgs e)
+ {
+ SetControl(typeof(NotaFiscalView));
+ }
+
+ private void Window_Loaded(object sender, RoutedEventArgs e)
+ {
+ //IL_0016: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0020: Expected O, but got Unknown
+ //IL_0036: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0040: Expected O, but got Unknown
+ EventManager.RegisterClassHandler(typeof(CustomItemValidation), UIElement.LostFocusEvent, (Delegate)new RoutedEventHandler(ViewHelper.ControlLostFocus));
+ EventManager.RegisterClassHandler(typeof(CustomIsReadOnlyControl), UIElement.LostFocusEvent, (Delegate)new RoutedEventHandler(ViewHelper.ControlLostFocus));
+ PipeName = $"GESTORPIPE{ApplicationHelper.NumeroSerial}{((DomainBase)Recursos.Usuario).Id}";
+ new PipeServer().CreateServer(PipeName);
+ }
+
+ private async void GerarQrCode()
+ {
+ try
+ {
+ QRCodeGenerator qrGenerator = new QRCodeGenerator();
+ Usuario val = await new UsuarioServico().BuscarUsuarioPorId(((DomainBase)Recursos.Usuario).Id);
+ if (val == null)
+ {
+ ((UIElement)QrCode).Visibility = (Visibility)2;
+ return;
+ }
+ ViewModel.Code = EncryptionHelper.Encrypt($"{ApplicationHelper.NumeroSerial}:{val.IdEmpresa}:{val.Login}:{new Token().AggerDecrypt(val.Senha)}");
+ Bitmap graphic = new QRCode(qrGenerator.CreateQrCode(ViewModel.Code, (ECCLevel)2, false, false, (EciMode)0, -1)).GetGraphic(20);
+ BitmapImage val2;
+ using (MemoryStream memoryStream = new MemoryStream())
+ {
+ ((Image)graphic).Save((Stream)memoryStream, ImageFormat.Png);
+ memoryStream.Position = 0L;
+ val2 = new BitmapImage();
+ val2.BeginInit();
+ val2.StreamSource = memoryStream;
+ val2.CacheOption = (BitmapCacheOption)1;
+ val2.EndInit();
+ }
+ ViewModel.QrCode = val2;
+ ((UIElement)QrCode).Visibility = (Visibility)0;
+ ViewModel.Code = ApplicationHelper.NumeroSerial ?? "";
+ }
+ catch (Exception)
+ {
+ await ViewModel.ShowMessage("ERRO AO GERAR QRCODE");
+ }
+ }
+
+ private void ImageAppStore_OnMouseLeftButtonUp(object sender, MouseButtonEventArgs e)
+ {
+ Process.Start(new ProcessStartInfo("https://apps.apple.com/br/app/agger-mobile/id1463091598"));
+ }
+
+ private void ImageGooglePlay_OnMouseLeftButtonUp(object sender, MouseButtonEventArgs e)
+ {
+ Process.Start(new ProcessStartInfo("https://play.google.com/store/apps/details?id=br.com.aggermobile&hl=pt&gl=US"));
+ }
+
+ private void CopyCode_Click(object sender, RoutedEventArgs e)
+ {
+ ViewModel.Code.CopyToClipboard();
+ ViewModel.ToggleSnackBar("CÓDIGO COPIADO - " + ViewModel.Code);
+ }
+
+ private void MenuGestorMobile_OnClick(object sender, RoutedEventArgs e)
+ {
+ //IL_000c: Unknown result type (might be due to invalid IL or missing references)
+ ((UIElement)QrCode).Visibility = (Visibility)(((int)((UIElement)QrCode).Visibility == 0) ? 2 : 0);
+ QrCode.IsPopupOpen = !QrCode.IsPopupOpen;
+ }
+
+ private async Task<bool> VerificarComissao(Produto? produto = null, TipoTela? tela = null, TipoRestricao? restricao = null)
+ {
+ if (tela.HasValue && (int)tela.GetValueOrDefault() == 35 && ViewModel.MatrizFilial && ((DomainBase)Recursos.Empresa).Id > 1)
+ {
+ await ViewModel.ShowMessage("FILIAL NÃO POSSUI AUTORIZAÇÃO PARA BAIXA DE COMISSÃO AUTOMÁTICA, TODA BAIXA DE COMISSÃO AUTOMÁTICA DEVE SER FEITA PELA MATRIZ.");
+ return false;
+ }
+ return await VerificarLicenca(produto, tela, restricao);
+ }
+
+ private async void PesquisaCliente_SelectionChanged(object sender, SelectionChangedEventArgs e)
+ {
+ if (ViewModel.SelectedCliente == null)
+ {
+ _lastCustomer = null;
+ ViewModel.LimparDocumentos();
+ }
+ else if (_lastCustomer != null && !(ViewModel.Content is ClienteView))
+ {
+ object lastCustomer = _lastCustomer;
+ Cliente selectedCliente = (Cliente)((lastCustomer is Cliente) ? lastCustomer : null);
+ ViewModel.SelectedCliente = selectedCliente;
+ if (ViewModel.Content is DashboardView)
+ {
+ ViewModel.Content = new ConsultaOriginalView(ViewModel.ConsultaViewModel);
+ }
+ }
+ else
+ {
+ _lastCustomer = ViewModel.SelectedCliente;
+ await ViewModel.SelecionarCliente(ViewModel.SelectedCliente);
+ if (ViewModel.Content is DashboardView)
+ {
+ ViewModel.Content = new ConsultaOriginalView(ViewModel.ConsultaViewModel);
+ }
+ }
+ }
+
+ private void PesquisaCliente_PreviewKeyDown(object sender, KeyEventArgs e)
+ {
+ //IL_0001: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0008: Invalid comparison between Unknown and I4
+ //IL_0039: Unknown result type (might be due to invalid IL or missing references)
+ //IL_006b: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0075: Expected O, but got Unknown
+ //IL_0023: 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)
+ if ((int)e.Key == 18 && lastKey.HasValue && lastKey.Value == e.Key)
+ {
+ ((RoutedEventArgs)e).Handled = true;
+ }
+ lastKey = e.Key;
+ if (((RoutedEventArgs)e).OriginalSource.GetType() == typeof(TextBox))
+ {
+ _textBox = (TextBox)((RoutedEventArgs)e).OriginalSource;
+ }
+ }
+
+ private void PesquisaCliente_MouseDoubleClick(object sender, MouseButtonEventArgs e)
+ {
+ TextBox textBox = _textBox;
+ if (textBox != null)
+ {
+ ((TextBoxBase)textBox).SelectAll();
+ }
+ }
+
+ private async void CartaoVisita_OnClick(object sender, RoutedEventArgs e)
+ {
+ Process.Start($"{Address.Card}{((DomainBase)Recursos.Usuario).Id.GeraCartaoVisita()}");
+ }
+
+ private void DashBoard_OnClick(object sender, RoutedEventArgs e)
+ {
+ SetControl(typeof(DashboardView));
+ }
+
+ private void Observacoes_OnClick(object sender, RoutedEventArgs e)
+ {
+ if (ViewModel.SelectedCliente != null && ((DomainBase)ViewModel.SelectedCliente).Id != 0L)
+ {
+ ViewModel.ShowDrawer(new ObservacoesDrawer(((DomainBase)ViewModel.SelectedCliente).Id, (TipoTela)1), 0);
+ }
+ }
+
+ private void DocumentoPrincipal_MouseDoubleClick(object sender, MouseButtonEventArgs e)
+ {
+ //IL_0006: Unknown result type (might be due to invalid IL or missing references)
+ try
+ {
+ ((TextBoxBase)(TextBox)((RoutedEventArgs)e).Source).SelectAll();
+ }
+ catch
+ {
+ }
+ }
+
+ private void CopiarDocumento_Click(object sender, MouseButtonEventArgs 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)
+ try
+ {
+ TextBox val = (TextBox)sender;
+ string text = (((int)val != 0) ? val.Text : null) ?? string.Empty;
+ if (!ValidationHelper.IsNullOrEmpty(text))
+ {
+ text.CopyToClipboard();
+ ((RoutedEventArgs)e).Handled = true;
+ ViewModel.ToggleSnackBar("COPIADO - " + text);
+ }
+ }
+ catch (Exception)
+ {
+ }
+ }
+
+ [DebuggerNonUserCode]
+ [GeneratedCode("PresentationBuildTasks", "4.0.0.0")]
+ public void InitializeComponent()
+ {
+ if (!_contentLoaded)
+ {
+ _contentLoaded = true;
+ Uri uri = new Uri("/Gestor.Application;component/mainwindow.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_01c2: Unknown result type (might be due to invalid IL or missing references)
+ //IL_01cc: Expected O, but got Unknown
+ //IL_01f0: Unknown result type (might be due to invalid IL or missing references)
+ //IL_01fa: Expected O, but got Unknown
+ //IL_01fd: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0207: Expected O, but got Unknown
+ //IL_0209: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0215: Unknown result type (might be due to invalid IL or missing references)
+ //IL_021f: Expected O, but got Unknown
+ //IL_0221: Unknown result type (might be due to invalid IL or missing references)
+ //IL_022d: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0237: Expected O, but got Unknown
+ //IL_0239: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0245: Unknown result type (might be due to invalid IL or missing references)
+ //IL_024f: Expected O, but got Unknown
+ //IL_0251: Unknown result type (might be due to invalid IL or missing references)
+ //IL_025d: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0267: Expected O, but got Unknown
+ //IL_0269: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0275: Unknown result type (might be due to invalid IL or missing references)
+ //IL_027f: Expected O, but got Unknown
+ //IL_0281: Unknown result type (might be due to invalid IL or missing references)
+ //IL_028d: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0297: Expected O, but got Unknown
+ //IL_0299: Unknown result type (might be due to invalid IL or missing references)
+ //IL_02a5: Unknown result type (might be due to invalid IL or missing references)
+ //IL_02af: Expected O, but got Unknown
+ //IL_02b1: Unknown result type (might be due to invalid IL or missing references)
+ //IL_02bd: Unknown result type (might be due to invalid IL or missing references)
+ //IL_02c7: Expected O, but got Unknown
+ //IL_02c9: Unknown result type (might be due to invalid IL or missing references)
+ //IL_02d5: Unknown result type (might be due to invalid IL or missing references)
+ //IL_02df: Expected O, but got Unknown
+ //IL_02e1: Unknown result type (might be due to invalid IL or missing references)
+ //IL_02ed: Unknown result type (might be due to invalid IL or missing references)
+ //IL_02f7: Expected O, but got Unknown
+ //IL_02f9: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0305: Unknown result type (might be due to invalid IL or missing references)
+ //IL_030f: Expected O, but got Unknown
+ //IL_0312: Unknown result type (might be due to invalid IL or missing references)
+ //IL_031c: Expected O, but got Unknown
+ //IL_0329: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0333: Expected O, but got Unknown
+ //IL_0340: Unknown result type (might be due to invalid IL or missing references)
+ //IL_034a: Expected O, but got Unknown
+ //IL_034d: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0357: Expected O, but got Unknown
+ //IL_0364: Unknown result type (might be due to invalid IL or missing references)
+ //IL_036e: Expected O, but got Unknown
+ //IL_037b: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0385: Expected O, but got Unknown
+ //IL_0388: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0392: Expected O, but got Unknown
+ //IL_039f: Unknown result type (might be due to invalid IL or missing references)
+ //IL_03a9: Expected O, but got Unknown
+ //IL_03b6: Unknown result type (might be due to invalid IL or missing references)
+ //IL_03c0: Expected O, but got Unknown
+ //IL_03c3: Unknown result type (might be due to invalid IL or missing references)
+ //IL_03cd: Expected O, but got Unknown
+ //IL_03d0: Unknown result type (might be due to invalid IL or missing references)
+ //IL_03da: Expected O, but got Unknown
+ //IL_03dd: Unknown result type (might be due to invalid IL or missing references)
+ //IL_03e7: Expected O, but got Unknown
+ //IL_03f4: Unknown result type (might be due to invalid IL or missing references)
+ //IL_03fe: Expected O, but got Unknown
+ //IL_0401: Unknown result type (might be due to invalid IL or missing references)
+ //IL_040b: Expected O, but got Unknown
+ //IL_0418: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0422: Expected O, but got Unknown
+ //IL_0425: Unknown result type (might be due to invalid IL or missing references)
+ //IL_042f: Expected O, but got Unknown
+ //IL_043c: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0446: Expected O, but got Unknown
+ //IL_0449: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0453: Expected O, but got Unknown
+ //IL_0460: Unknown result type (might be due to invalid IL or missing references)
+ //IL_046a: Expected O, but got Unknown
+ //IL_046d: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0477: Expected O, but got Unknown
+ //IL_0484: Unknown result type (might be due to invalid IL or missing references)
+ //IL_048e: Expected O, but got Unknown
+ //IL_0491: Unknown result type (might be due to invalid IL or missing references)
+ //IL_049b: Expected O, but got Unknown
+ //IL_04a8: Unknown result type (might be due to invalid IL or missing references)
+ //IL_04b2: Expected O, but got Unknown
+ //IL_04b5: Unknown result type (might be due to invalid IL or missing references)
+ //IL_04bf: Expected O, but got Unknown
+ //IL_04cc: Unknown result type (might be due to invalid IL or missing references)
+ //IL_04d6: Expected O, but got Unknown
+ //IL_04d9: Unknown result type (might be due to invalid IL or missing references)
+ //IL_04e3: Expected O, but got Unknown
+ //IL_04f0: Unknown result type (might be due to invalid IL or missing references)
+ //IL_04fa: Expected O, but got Unknown
+ //IL_04fd: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0507: Expected O, but got Unknown
+ //IL_0514: Unknown result type (might be due to invalid IL or missing references)
+ //IL_051e: Expected O, but got Unknown
+ //IL_0521: Unknown result type (might be due to invalid IL or missing references)
+ //IL_052b: Expected O, but got Unknown
+ //IL_0538: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0542: Expected O, but got Unknown
+ //IL_0545: Unknown result type (might be due to invalid IL or missing references)
+ //IL_054f: Expected O, but got Unknown
+ //IL_055c: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0566: Expected O, but got Unknown
+ //IL_0569: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0573: Expected O, but got Unknown
+ //IL_0580: Unknown result type (might be due to invalid IL or missing references)
+ //IL_058a: Expected O, but got Unknown
+ //IL_058d: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0597: Expected O, but got Unknown
+ //IL_059a: Unknown result type (might be due to invalid IL or missing references)
+ //IL_05a4: Expected O, but got Unknown
+ //IL_05b1: Unknown result type (might be due to invalid IL or missing references)
+ //IL_05bb: Expected O, but got Unknown
+ //IL_05be: Unknown result type (might be due to invalid IL or missing references)
+ //IL_05c8: Expected O, but got Unknown
+ //IL_05d5: Unknown result type (might be due to invalid IL or missing references)
+ //IL_05df: Expected O, but got Unknown
+ //IL_05e2: Unknown result type (might be due to invalid IL or missing references)
+ //IL_05ec: Expected O, but got Unknown
+ //IL_05f9: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0603: Expected O, but got Unknown
+ //IL_0606: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0610: Expected O, but got Unknown
+ //IL_061d: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0627: Expected O, but got Unknown
+ //IL_062a: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0634: Expected O, but got Unknown
+ //IL_0641: Unknown result type (might be due to invalid IL or missing references)
+ //IL_064b: Expected O, but got Unknown
+ //IL_064e: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0658: Expected O, but got Unknown
+ //IL_0665: Unknown result type (might be due to invalid IL or missing references)
+ //IL_066f: Expected O, but got Unknown
+ //IL_0672: Unknown result type (might be due to invalid IL or missing references)
+ //IL_067c: Expected O, but got Unknown
+ //IL_0689: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0693: Expected O, but got Unknown
+ //IL_0696: Unknown result type (might be due to invalid IL or missing references)
+ //IL_06a0: Expected O, but got Unknown
+ //IL_06ad: Unknown result type (might be due to invalid IL or missing references)
+ //IL_06b7: Expected O, but got Unknown
+ //IL_06ba: Unknown result type (might be due to invalid IL or missing references)
+ //IL_06c4: Expected O, but got Unknown
+ //IL_06d1: Unknown result type (might be due to invalid IL or missing references)
+ //IL_06db: Expected O, but got Unknown
+ //IL_06de: Unknown result type (might be due to invalid IL or missing references)
+ //IL_06e8: Expected O, but got Unknown
+ //IL_06f5: Unknown result type (might be due to invalid IL or missing references)
+ //IL_06ff: Expected O, but got Unknown
+ //IL_0702: Unknown result type (might be due to invalid IL or missing references)
+ //IL_070c: Expected O, but got Unknown
+ //IL_0719: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0723: Expected O, but got Unknown
+ //IL_0726: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0730: Expected O, but got Unknown
+ //IL_073d: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0747: Expected O, but got Unknown
+ //IL_074a: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0754: Expected O, but got Unknown
+ //IL_0761: Unknown result type (might be due to invalid IL or missing references)
+ //IL_076b: Expected O, but got Unknown
+ //IL_076e: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0778: Expected O, but got Unknown
+ //IL_0785: Unknown result type (might be due to invalid IL or missing references)
+ //IL_078f: Expected O, but got Unknown
+ //IL_0792: Unknown result type (might be due to invalid IL or missing references)
+ //IL_079c: Expected O, but got Unknown
+ //IL_07a9: Unknown result type (might be due to invalid IL or missing references)
+ //IL_07b3: Expected O, but got Unknown
+ //IL_07b6: Unknown result type (might be due to invalid IL or missing references)
+ //IL_07c0: Expected O, but got Unknown
+ //IL_07cd: Unknown result type (might be due to invalid IL or missing references)
+ //IL_07d7: Expected O, but got Unknown
+ //IL_07da: Unknown result type (might be due to invalid IL or missing references)
+ //IL_07e4: Expected O, but got Unknown
+ //IL_07f1: Unknown result type (might be due to invalid IL or missing references)
+ //IL_07fb: Expected O, but got Unknown
+ //IL_07fe: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0808: Expected O, but got Unknown
+ //IL_0815: Unknown result type (might be due to invalid IL or missing references)
+ //IL_081f: Expected O, but got Unknown
+ //IL_0822: Unknown result type (might be due to invalid IL or missing references)
+ //IL_082c: Expected O, but got Unknown
+ //IL_0839: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0843: Expected O, but got Unknown
+ //IL_0846: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0850: Expected O, but got Unknown
+ //IL_0853: Unknown result type (might be due to invalid IL or missing references)
+ //IL_085d: Expected O, but got Unknown
+ //IL_086a: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0874: Expected O, but got Unknown
+ //IL_0877: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0881: Expected O, but got Unknown
+ //IL_088e: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0898: Expected O, but got Unknown
+ //IL_089b: Unknown result type (might be due to invalid IL or missing references)
+ //IL_08a5: Expected O, but got Unknown
+ //IL_08b2: Unknown result type (might be due to invalid IL or missing references)
+ //IL_08bc: Expected O, but got Unknown
+ //IL_08bf: Unknown result type (might be due to invalid IL or missing references)
+ //IL_08c9: Expected O, but got Unknown
+ //IL_08d6: Unknown result type (might be due to invalid IL or missing references)
+ //IL_08e0: Expected O, but got Unknown
+ //IL_08e3: Unknown result type (might be due to invalid IL or missing references)
+ //IL_08ed: Expected O, but got Unknown
+ //IL_08fa: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0904: Expected O, but got Unknown
+ //IL_0907: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0911: Expected O, but got Unknown
+ //IL_091e: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0928: Expected O, but got Unknown
+ //IL_092b: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0935: Expected O, but got Unknown
+ //IL_0942: Unknown result type (might be due to invalid IL or missing references)
+ //IL_094c: Expected O, but got Unknown
+ //IL_094e: Unknown result type (might be due to invalid IL or missing references)
+ //IL_095a: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0964: Expected O, but got Unknown
+ //IL_0967: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0971: Expected O, but got Unknown
+ //IL_097e: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0988: Expected O, but got Unknown
+ //IL_098b: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0995: Expected O, but got Unknown
+ //IL_09a2: Unknown result type (might be due to invalid IL or missing references)
+ //IL_09ac: Expected O, but got Unknown
+ //IL_09af: Unknown result type (might be due to invalid IL or missing references)
+ //IL_09b9: Expected O, but got Unknown
+ //IL_09c6: Unknown result type (might be due to invalid IL or missing references)
+ //IL_09d0: Expected O, but got Unknown
+ //IL_09d3: Unknown result type (might be due to invalid IL or missing references)
+ //IL_09dd: Expected O, but got Unknown
+ //IL_09ea: Unknown result type (might be due to invalid IL or missing references)
+ //IL_09f4: Expected O, but got Unknown
+ //IL_09f7: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0a01: Expected O, but got Unknown
+ //IL_0a0e: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0a18: Expected O, but got Unknown
+ //IL_0a1b: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0a25: Expected O, but got Unknown
+ //IL_0a32: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0a3c: Expected O, but got Unknown
+ //IL_0a3f: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0a49: Expected O, but got Unknown
+ //IL_0a56: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0a60: Expected O, but got Unknown
+ //IL_0a63: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0a6d: Expected O, but got Unknown
+ //IL_0a7a: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0a84: Expected O, but got Unknown
+ //IL_0a87: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0a91: Expected O, but got Unknown
+ //IL_0a9e: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0aa8: Expected O, but got Unknown
+ //IL_0aab: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0ab5: Expected O, but got Unknown
+ //IL_0ac2: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0acc: Expected O, but got Unknown
+ //IL_0acf: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0ad9: Expected O, but got Unknown
+ //IL_0ae6: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0af0: Expected O, but got Unknown
+ //IL_0af3: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0afd: Expected O, but got Unknown
+ //IL_0b00: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0b0a: Expected O, but got Unknown
+ //IL_0b0c: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0b18: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0b22: Expected O, but got Unknown
+ //IL_0b25: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0b2f: Expected O, but got Unknown
+ //IL_0b32: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0b3c: Expected O, but got Unknown
+ //IL_0b49: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0b53: Expected O, but got Unknown
+ //IL_0b60: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0b6a: Expected O, but got Unknown
+ //IL_0b77: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0b81: Expected O, but got Unknown
+ //IL_0b8e: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0b98: Expected O, but got Unknown
+ //IL_0ba5: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0baf: Expected O, but got Unknown
+ //IL_0bb2: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0bbc: Expected O, but got Unknown
+ //IL_0bc9: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0bd3: Expected O, but got Unknown
+ //IL_0be0: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0bea: Expected O, but got Unknown
+ //IL_0bf7: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0c01: Expected O, but got Unknown
+ //IL_0c0e: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0c18: Expected O, but got Unknown
+ //IL_0c25: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0c2f: Expected O, but got Unknown
+ //IL_0c3f: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0c49: Expected O, but got Unknown
+ //IL_0c56: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0c60: Expected O, but got Unknown
+ //IL_0c6d: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0c77: Expected O, but got Unknown
+ //IL_0c7a: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0c84: Expected O, but got Unknown
+ //IL_0c91: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0c9b: Expected O, but got Unknown
+ //IL_0c9e: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0ca8: Expected O, but got Unknown
+ //IL_0cb5: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0cbf: Expected O, but got Unknown
+ //IL_0cc2: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0ccc: Expected O, but got Unknown
+ //IL_0cd9: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0ce3: Expected O, but got Unknown
+ //IL_0ce6: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0cf0: Expected O, but got Unknown
+ //IL_0cfd: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0d07: Expected O, but got Unknown
+ //IL_0d14: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0d1e: Expected O, but got Unknown
+ //IL_0d21: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0d2b: Expected O, but got Unknown
+ //IL_0d2d: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0d39: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0d43: Expected O, but got Unknown
+ //IL_0d46: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0d50: Expected O, but got Unknown
+ //IL_0d5d: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0d67: Expected O, but got Unknown
+ //IL_0d6a: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0d74: Expected O, but got Unknown
+ //IL_0d81: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0d8b: Expected O, but got Unknown
+ //IL_0d8e: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0d98: Expected O, but got Unknown
+ //IL_0d9a: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0da6: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0db0: Expected O, but got Unknown
+ //IL_0db3: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0dbd: Expected O, but got Unknown
+ //IL_0dbf: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0dcb: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0dd5: Expected O, but got Unknown
+ //IL_0dd7: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0de3: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0ded: Expected O, but got Unknown
+ //IL_0df0: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0dfa: Expected O, but got Unknown
+ //IL_0e07: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0e11: Expected O, but got Unknown
+ //IL_0e13: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0e1f: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0e29: Expected O, but got Unknown
+ //IL_0e2b: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0e37: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0e41: Expected O, but got Unknown
+ //IL_0e44: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0e4e: Expected O, but got Unknown
+ //IL_0e50: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0e5c: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0e66: Expected O, but got Unknown
+ //IL_0e68: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0e74: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0e7e: Expected O, but got Unknown
+ //IL_0e81: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0e8b: Expected O, but got Unknown
+ //IL_0e8d: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0e99: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0ea3: Expected O, but got Unknown
+ //IL_0ea6: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0eb0: Expected O, but got Unknown
+ //IL_0eb3: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0ebd: Expected O, but got Unknown
+ switch (connectionId)
+ {
+ case 1:
+ ((FrameworkElement)(MainWindow)target).Loaded += new RoutedEventHandler(Window_Loaded);
+ ((FrameworkElement)(MainWindow)target).Initialized += MainWindow_OnInitialized;
+ ((FrameworkElement)(MainWindow)target).SizeChanged += new SizeChangedEventHandler(MainWindow_OnSizeChanged);
+ break;
+ case 2:
+ WindowChrome = (WindowChrome)target;
+ break;
+ case 3:
+ ((ButtonBase)(Button)target).Click += new RoutedEventHandler(CartaoVisita_OnClick);
+ break;
+ case 4:
+ ((MenuItem)target).Click += new RoutedEventHandler(Notas_OnClick);
+ break;
+ case 5:
+ ((MenuItem)target).Click += new RoutedEventHandler(Tarefas_OnClick);
+ break;
+ case 6:
+ ((ButtonBase)(Button)target).Click += new RoutedEventHandler(Agenda_OnClick);
+ break;
+ case 7:
+ ((ButtonBase)(Button)target).Click += new RoutedEventHandler(MenuGestorMobile_OnClick);
+ break;
+ case 8:
+ ((MenuItem)target).Click += new RoutedEventHandler(Atendimentos_OnClick);
+ break;
+ case 9:
+ ((MenuItem)target).Click += new RoutedEventHandler(BoletosNotas_OnClick);
+ break;
+ case 10:
+ ((MenuItem)target).Click += new RoutedEventHandler(Contratos_OnClick);
+ break;
+ case 11:
+ ((MenuItem)target).Click += new RoutedEventHandler(Instalacao_OnClick);
+ break;
+ case 12:
+ ((MenuItem)target).Click += new RoutedEventHandler(CopiarChave_OnClick);
+ break;
+ case 13:
+ ((MenuItem)target).Click += new RoutedEventHandler(AcessoRemoto_OnClick);
+ break;
+ case 14:
+ MinimizeButton = (Grid)target;
+ ((UIElement)MinimizeButton).MouseLeftButtonDown += new MouseButtonEventHandler(TopControls_OnMouseLeftButtonDown);
+ ((UIElement)MinimizeButton).MouseLeftButtonUp += new MouseButtonEventHandler(TopControls_OnMouseLeftButtonUp);
+ break;
+ case 15:
+ MaximizeButton = (Grid)target;
+ ((UIElement)MaximizeButton).MouseLeftButtonDown += new MouseButtonEventHandler(TopControls_OnMouseLeftButtonDown);
+ ((UIElement)MaximizeButton).MouseLeftButtonUp += new MouseButtonEventHandler(TopControls_OnMouseLeftButtonUp);
+ break;
+ case 16:
+ CloseButton = (Grid)target;
+ ((UIElement)CloseButton).MouseLeftButtonDown += new MouseButtonEventHandler(TopControls_OnMouseLeftButtonDown);
+ ((UIElement)CloseButton).MouseLeftButtonUp += new MouseButtonEventHandler(TopControls_OnMouseLeftButtonUp);
+ break;
+ case 17:
+ MainMenu = (HamburgerMenu)target;
+ break;
+ case 18:
+ CentralDeNegociosMenu = (HamburgerMenuItem)target;
+ break;
+ case 19:
+ DashBoard = (HamburgerMenuItem)target;
+ DashBoard.Click += new RoutedEventHandler(DashBoard_OnClick);
+ break;
+ case 20:
+ PainelBi = (HamburgerMenuItem)target;
+ PainelBi.Click += new RoutedEventHandler(PainelBi_OnClick);
+ break;
+ case 21:
+ Prospeccao = (HamburgerMenuItem)target;
+ Prospeccao.Click += new RoutedEventHandler(Prospeccao_OnClick);
+ break;
+ case 22:
+ SegurosMenu = (HamburgerMenuItem)target;
+ SegurosMenu.DoubleClick += new RoutedEventHandler(Consultar_OnClick);
+ break;
+ case 23:
+ Consulta = (HamburgerMenuItem)target;
+ Consulta.Click += new RoutedEventHandler(Consultar_OnClick);
+ break;
+ case 24:
+ Clientes = (HamburgerMenuItem)target;
+ Clientes.Click += new RoutedEventHandler(Clientes_OnClick);
+ break;
+ case 25:
+ Apolices = (HamburgerMenuItem)target;
+ Apolices.Click += new RoutedEventHandler(Apolices_OnClick);
+ break;
+ case 26:
+ Itens = (HamburgerMenuItem)target;
+ Itens.Click += new RoutedEventHandler(Itens_OnClick);
+ break;
+ case 27:
+ Sinistros = (HamburgerMenuItem)target;
+ Sinistros.Click += new RoutedEventHandler(Sinistros_OnClick);
+ break;
+ case 28:
+ ImportPdf = (HamburgerMenuItem)target;
+ ImportPdf.Click += new RoutedEventHandler(ImportPdf_OnClick);
+ break;
+ case 29:
+ CriticaPdf = (HamburgerMenuItem)target;
+ CriticaPdf.Click += new RoutedEventHandler(CriticaPdf_OnClick);
+ break;
+ case 30:
+ Comissao = (HamburgerMenuItem)target;
+ Comissao.Click += new RoutedEventHandler(Comissao_OnClick);
+ break;
+ case 31:
+ RelatoriosMenu = (HamburgerMenuItem)target;
+ break;
+ case 32:
+ RelatoriosCliente = (HamburgerMenuItem)target;
+ RelatoriosCliente.Click += new RoutedEventHandler(Relatorios_OnClick);
+ break;
+ case 33:
+ RelatoriosDocumentos = (HamburgerMenuItem)target;
+ RelatoriosDocumentos.Click += new RoutedEventHandler(Relatorios_OnClick);
+ break;
+ case 34:
+ RelatoriosParcelas = (HamburgerMenuItem)target;
+ RelatoriosParcelas.Click += new RoutedEventHandler(Relatorios_OnClick);
+ break;
+ case 35:
+ RelatoriosSinistros = (HamburgerMenuItem)target;
+ RelatoriosSinistros.Click += new RoutedEventHandler(Relatorios_OnClick);
+ break;
+ case 36:
+ RelatoriosFechamento = (HamburgerMenuItem)target;
+ RelatoriosFechamento.Click += new RoutedEventHandler(Relatorios_OnClick);
+ break;
+ case 37:
+ RelatoriosExtrato = (HamburgerMenuItem)target;
+ RelatoriosExtrato.Click += new RoutedEventHandler(Relatorios_OnClick);
+ break;
+ case 38:
+ RelatoriosNotas = (HamburgerMenuItem)target;
+ RelatoriosNotas.Click += new RoutedEventHandler(Relatorios_OnClick);
+ break;
+ case 39:
+ RelatoriosTarefas = (HamburgerMenuItem)target;
+ RelatoriosTarefas.Click += new RoutedEventHandler(Relatorios_OnClick);
+ break;
+ case 40:
+ RelatoriosLogs = (HamburgerMenuItem)target;
+ RelatoriosLogs.Click += new RoutedEventHandler(Relatorios_OnClick);
+ break;
+ case 41:
+ ExtratoConta = (HamburgerMenuItem)target;
+ ExtratoConta.Click += new RoutedEventHandler(ExtratoConta_OnClick);
+ break;
+ case 42:
+ FechamentoFinanceiro = (HamburgerMenuItem)target;
+ FechamentoFinanceiro.Click += new RoutedEventHandler(FechamentoFinanceiro_OnClick);
+ break;
+ case 43:
+ Assinatura = (HamburgerMenuItem)target;
+ Assinatura.Click += new RoutedEventHandler(Assinatura_OnClick);
+ break;
+ case 44:
+ Aggilizador = (HamburgerMenuItem)target;
+ Aggilizador.Click += new RoutedEventHandler(Aggilizador_OnClick);
+ break;
+ case 45:
+ Epic = (HamburgerMenuItem)target;
+ Epic.Click += new RoutedEventHandler(Epic_OnClick);
+ break;
+ case 46:
+ FinanceiroMenu = (HamburgerMenuItem)target;
+ FinanceiroMenu.Click += new RoutedEventHandler(FinanceiroMenu_OnClick);
+ break;
+ case 47:
+ Conta = (HamburgerMenuItem)target;
+ Conta.Click += new RoutedEventHandler(Conta_OnClick);
+ break;
+ case 48:
+ Centro = (HamburgerMenuItem)target;
+ Centro.Click += new RoutedEventHandler(Centro_OnClick);
+ break;
+ case 49:
+ Fornecedor = (HamburgerMenuItem)target;
+ Fornecedor.Click += new RoutedEventHandler(Fornecedor_OnClick);
+ break;
+ case 50:
+ Plano = (HamburgerMenuItem)target;
+ Plano.Click += new RoutedEventHandler(Plano_OnClick);
+ break;
+ case 51:
+ FerramentasMenu = (HamburgerMenuItem)target;
+ break;
+ case 52:
+ Emails = (HamburgerMenuItem)target;
+ Emails.Click += new RoutedEventHandler(Emails_OnClick);
+ break;
+ case 53:
+ Empresa = (HamburgerMenuItem)target;
+ Empresa.Click += new RoutedEventHandler(Empresa_OnClick);
+ break;
+ case 54:
+ Estipulantes = (HamburgerMenuItem)target;
+ Estipulantes.Click += new RoutedEventHandler(Estipulantes_OnClick);
+ break;
+ case 55:
+ ManutencaoPagamentos = (HamburgerMenuItem)target;
+ ManutencaoPagamentos.Click += new RoutedEventHandler(Manutencao_OnClick);
+ break;
+ case 56:
+ NotaFiscal = (HamburgerMenuItem)target;
+ NotaFiscal.Click += new RoutedEventHandler(NotaFiscal_OnClick);
+ break;
+ case 57:
+ Parceiro = (HamburgerMenuItem)target;
+ Parceiro.Click += new RoutedEventHandler(Parceiro_OnClick);
+ break;
+ case 58:
+ Produtos = (HamburgerMenuItem)target;
+ Produtos.Click += new RoutedEventHandler(Produtos_OnClick);
+ break;
+ case 59:
+ ((HamburgerMenuItem)target).Click += new RoutedEventHandler(Protocolos_OnClick);
+ break;
+ case 60:
+ Qualificacao = (HamburgerMenuItem)target;
+ Qualificacao.Click += new RoutedEventHandler(Qualificacao_OnClick);
+ break;
+ case 61:
+ Ramos = (HamburgerMenuItem)target;
+ Ramos.Click += new RoutedEventHandler(Ramos_OnClick);
+ break;
+ case 62:
+ Recibo = (HamburgerMenuItem)target;
+ Recibo.Click += new RoutedEventHandler(Recibo_OnClick);
+ break;
+ case 63:
+ Seguradoras = (HamburgerMenuItem)target;
+ Seguradoras.Click += new RoutedEventHandler(Seguradoras_OnClick);
+ break;
+ case 64:
+ Socio = (HamburgerMenuItem)target;
+ Socio.Click += new RoutedEventHandler(Socio_OnClick);
+ break;
+ case 65:
+ Statuses = (HamburgerMenuItem)target;
+ Statuses.Click += new RoutedEventHandler(Status_OnClick);
+ break;
+ case 66:
+ StatusProspeccao = (HamburgerMenuItem)target;
+ StatusProspeccao.Click += new RoutedEventHandler(StatusProspeccao_OnClick);
+ break;
+ case 67:
+ TipoTarefa = (HamburgerMenuItem)target;
+ TipoTarefa.Click += new RoutedEventHandler(TipoTarefa_OnClick);
+ break;
+ case 68:
+ TipoVendedor = (HamburgerMenuItem)target;
+ TipoVendedor.Click += new RoutedEventHandler(TipoVendedor_OnClick);
+ break;
+ case 69:
+ Usuarios = (HamburgerMenuItem)target;
+ Usuarios.Click += new RoutedEventHandler(Usuarios_OnClick);
+ break;
+ case 70:
+ Vendedores = (HamburgerMenuItem)target;
+ Vendedores.Click += new RoutedEventHandler(Vendedores_OnClick);
+ break;
+ case 71:
+ Area = (RowDefinition)target;
+ break;
+ case 72:
+ Status = (ComboBox)target;
+ break;
+ case 73:
+ ((UIElement)(PackIcon)target).MouseDown += new MouseButtonEventHandler(Medalha_OnMouseDown);
+ break;
+ case 74:
+ FiltroClienteTipoBox = (ComboBox)target;
+ break;
+ case 75:
+ PesquisaCliente = (AutoCompleteBox)target;
+ PesquisaCliente.Populating += new PopulatingEventHandler(AutoCompleteBox_Populating);
+ ((UIElement)PesquisaCliente).GotKeyboardFocus += new KeyboardFocusChangedEventHandler(AutoCompleteCliente_OnGotKeyboardFocus);
+ PesquisaCliente.SelectionChanged += new SelectionChangedEventHandler(PesquisaCliente_SelectionChanged);
+ ((UIElement)PesquisaCliente).PreviewKeyDown += new KeyEventHandler(PesquisaCliente_PreviewKeyDown);
+ ((Control)PesquisaCliente).MouseDoubleClick += new MouseButtonEventHandler(PesquisaCliente_MouseDoubleClick);
+ break;
+ case 76:
+ PesquisaClienteNome = (AutoCompleteBox)target;
+ PesquisaClienteNome.Populating += new PopulatingEventHandler(AutoCompleteNomeBox_Populating);
+ ((UIElement)PesquisaClienteNome).GotKeyboardFocus += new KeyboardFocusChangedEventHandler(AutoCompleteCliente_OnGotKeyboardFocus);
+ PesquisaClienteNome.SelectionChanged += new SelectionChangedEventHandler(PesquisaCliente_SelectionChanged);
+ ((UIElement)PesquisaClienteNome).PreviewKeyDown += new KeyEventHandler(PesquisaCliente_PreviewKeyDown);
+ ((Control)PesquisaClienteNome).MouseDoubleClick += new MouseButtonEventHandler(PesquisaCliente_MouseDoubleClick);
+ break;
+ case 77:
+ LoadingAutoComplete = (Loading)target;
+ break;
+ case 78:
+ DocumentoPrincipalBox = (TextBox)target;
+ ((Control)DocumentoPrincipalBox).MouseDoubleClick += new MouseButtonEventHandler(DocumentoPrincipal_MouseDoubleClick);
+ ((UIElement)DocumentoPrincipalBox).MouseRightButtonUp += new MouseButtonEventHandler(CopiarDocumento_Click);
+ break;
+ case 79:
+ ObservacaoApolice = (Button)target;
+ ((ButtonBase)ObservacaoApolice).Click += new RoutedEventHandler(Observacoes_OnClick);
+ break;
+ case 80:
+ PesquisaAvancada = (MenuItem)target;
+ PesquisaAvancada.Click += new RoutedEventHandler(PesquisaAvancada_OnClick);
+ break;
+ case 81:
+ Voltar = (MenuItem)target;
+ Voltar.Click += new RoutedEventHandler(Voltar_OnClick);
+ break;
+ case 84:
+ ContentControl = (ContentControl)target;
+ ((UIElement)ContentControl).GotFocus += new RoutedEventHandler(ContentControl_GotFocus);
+ ((UIElement)ContentControl).MouseLeftButtonDown += new MouseButtonEventHandler(ContentControl_MouseLeftButtonDown);
+ break;
+ case 85:
+ QrCode = (PopupBox)target;
+ break;
+ case 86:
+ ((ButtonBase)(Button)target).Click += new RoutedEventHandler(MenuGestorMobile_OnClick);
+ break;
+ case 87:
+ ImageAppStore = (Image)target;
+ ((UIElement)ImageAppStore).MouseLeftButtonUp += new MouseButtonEventHandler(ImageAppStore_OnMouseLeftButtonUp);
+ break;
+ case 88:
+ ImageGooglePlay = (Image)target;
+ ((UIElement)ImageGooglePlay).MouseLeftButtonUp += new MouseButtonEventHandler(ImageGooglePlay_OnMouseLeftButtonUp);
+ break;
+ case 89:
+ SessionNumber = (TextBlock)target;
+ break;
+ case 90:
+ ((ButtonBase)(Button)target).Click += new RoutedEventHandler(CopyCode_Click);
+ break;
+ case 91:
+ BoletoPopup = (PopupBox)target;
+ break;
+ case 92:
+ ((ButtonBase)(Button)target).Click += new RoutedEventHandler(OcultarBoleto_OnClick);
+ break;
+ case 93:
+ ((ButtonBase)(Button)target).Click += new RoutedEventHandler(Fechar_OnClick);
+ break;
+ case 95:
+ HelpPopup = (PopupBox)target;
+ HelpPopup.Opened += new RoutedEventHandler(HelpPopup_Opened);
+ break;
+ case 96:
+ ((ButtonBase)(Button)target).Click += new RoutedEventHandler(OcultarAjuda_OnClick);
+ break;
+ case 97:
+ ((ButtonBase)(Button)target).Click += new RoutedEventHandler(Fechar_OnClick);
+ break;
+ case 100:
+ TarefaPopup = (StackPanel)target;
+ break;
+ case 101:
+ ((ButtonBase)(Button)target).Click += new RoutedEventHandler(Tarefas_OnClick);
+ break;
+ case 102:
+ ((ButtonBase)(Button)target).Click += new RoutedEventHandler(OcultarTarefas_OnClick);
+ break;
+ case 103:
+ Snackbar = (Snackbar)target;
+ break;
+ case 104:
+ ((SnackbarMessage)target).ActionClick += new RoutedEventHandler(SnackbarMessage_ActionClick);
+ break;
+ case 105:
+ ProgressRing = (Grid)target;
+ break;
+ case 106:
+ DrawerHost = (DrawerHost)target;
+ break;
+ default:
+ _contentLoaded = true;
+ break;
+ }
+ }
+
+ [DebuggerNonUserCode]
+ [GeneratedCode("PresentationBuildTasks", "4.0.0.0")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ void IStyleConnector.Connect(int connectionId, object target)
+ {
+ //IL_0051: Unknown result type (might be due to invalid IL or missing references)
+ //IL_005d: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0067: Expected O, but got Unknown
+ //IL_0021: Unknown result type (might be due to invalid IL or missing references)
+ //IL_002d: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0037: Expected O, but got Unknown
+ //IL_0069: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0075: Unknown result type (might be due to invalid IL or missing references)
+ //IL_007f: Expected O, but got Unknown
+ //IL_0039: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0045: Unknown result type (might be due to invalid IL or missing references)
+ //IL_004f: Expected O, but got Unknown
+ //IL_0081: Unknown result type (might be due to invalid IL or missing references)
+ //IL_008d: Unknown result type (might be due to invalid IL or missing references)
+ //IL_0097: Expected O, but got Unknown
+ switch (connectionId)
+ {
+ case 82:
+ ((ButtonBase)(Button)target).Click += new RoutedEventHandler(CopyTelefoneToClipBoard_Click);
+ break;
+ case 83:
+ ((ButtonBase)(Button)target).Click += new RoutedEventHandler(WhatsAppMessage_Click);
+ break;
+ case 94:
+ ((ButtonBase)(Button)target).Click += new RoutedEventHandler(Boleto_OnClick);
+ break;
+ case 98:
+ ((ButtonBase)(Button)target).Click += new RoutedEventHandler(CopyLink_OnClick);
+ break;
+ case 99:
+ ((ButtonBase)(Button)target).Click += new RoutedEventHandler(Play_Click);
+ break;
+ }
+ }
+}