diff options
Diffstat (limited to 'Decompiler/Gestor.Application.Views.Seguros.Itens/BuscarModeloView.cs')
| -rw-r--r-- | Decompiler/Gestor.Application.Views.Seguros.Itens/BuscarModeloView.cs | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/Decompiler/Gestor.Application.Views.Seguros.Itens/BuscarModeloView.cs b/Decompiler/Gestor.Application.Views.Seguros.Itens/BuscarModeloView.cs new file mode 100644 index 0000000..387c028 --- /dev/null +++ b/Decompiler/Gestor.Application.Views.Seguros.Itens/BuscarModeloView.cs @@ -0,0 +1,83 @@ +using System; +using System.CodeDom.Compiler; +using System.ComponentModel; +using System.Diagnostics; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Controls.Primitives; +using System.Windows.Input; +using System.Windows.Markup; +using Gestor.Application.ViewModels.Seguros.Itens; +using Gestor.Application.Views.Generic; + +namespace Gestor.Application.Views.Seguros.Itens; + +public class BuscarModeloView : BaseUserControl, IComponentConnector +{ + internal DataGrid BuscaModeloGrid; + + private bool _contentLoaded; + + public BuscarModeloViewModel ViewModel { get; set; } + + public BuscarModeloView(BuscarModeloViewModel viewModel) + { + ViewModel = viewModel; + ((FrameworkElement)this).DataContext = ViewModel; + InitializeComponent(); + } + + private void Pesquisar_OnClick(object sender, RoutedEventArgs e) + { + ViewModel.Pesquisar(); + } + + [DebuggerNonUserCode] + [GeneratedCode("PresentationBuildTasks", "4.0.0.0")] + public void InitializeComponent() + { + if (!_contentLoaded) + { + _contentLoaded = true; + Uri uri = new Uri("/Gestor.Application;component/views/seguros/itens/buscarmodeloview.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_0017: 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_002e: Expected O, but got Unknown + //IL_0030: Unknown result type (might be due to invalid IL or missing references) + //IL_003c: Unknown result type (might be due to invalid IL or missing references) + //IL_0046: Expected O, but got Unknown + //IL_0049: Unknown result type (might be due to invalid IL or missing references) + //IL_0053: Expected O, but got Unknown + switch (connectionId) + { + case 1: + ((UIElement)(TextBox)target).PreviewTextInput += new TextCompositionEventHandler(SomenteNumeros); + break; + case 2: + ((ButtonBase)(Button)target).Click += new RoutedEventHandler(Pesquisar_OnClick); + break; + case 3: + BuscaModeloGrid = (DataGrid)target; + break; + default: + _contentLoaded = true; + break; + } + } +} |