Exemplo n.º 1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.MetroWindow = ((sistemaCorporativo.FORMS.cadAgente.CadAgente)(target));

            #line 13 "..\..\..\FORMS\CadAgente.xaml"
                this.MetroWindow.Loaded += new System.Windows.RoutedEventHandler(this.MetroWindow_Loaded);

            #line default
            #line hidden

            #line 13 "..\..\..\FORMS\CadAgente.xaml"
                this.MetroWindow.KeyUp += new System.Windows.Input.KeyEventHandler(this.MetroWindow_KeyUp);

            #line default
            #line hidden
                return;

            case 2:
                this.grdCadastro = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.gConsultar = ((System.Windows.Controls.TabItem)(target));
                return;

            case 4:
                this.txtPesquisar = ((System.Windows.Controls.TextBox)(target));
                return;

            case 5:
                this.dgvConteudo = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 6:
                this.btnCancelar1 = ((System.Windows.Controls.Button)(target));

            #line 340 "..\..\..\FORMS\CadAgente.xaml"
                this.btnCancelar1.Click += new System.Windows.RoutedEventHandler(this.btnCancelar1_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.btnGerarLogin = ((System.Windows.Controls.Button)(target));

            #line 341 "..\..\..\FORMS\CadAgente.xaml"
                this.btnGerarLogin.Click += new System.Windows.RoutedEventHandler(this.btnGerarLogin_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.btnExcluirAgente = ((System.Windows.Controls.Button)(target));

            #line 342 "..\..\..\FORMS\CadAgente.xaml"
                this.btnExcluirAgente.Click += new System.Windows.RoutedEventHandler(this.btnExcluirAgente_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.btnEditar = ((System.Windows.Controls.Button)(target));

            #line 343 "..\..\..\FORMS\CadAgente.xaml"
                this.btnEditar.Click += new System.Windows.RoutedEventHandler(this.btnEditar_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.gCadastrar = ((System.Windows.Controls.TabItem)(target));
                return;

            case 11:
                this.txtNome = ((System.Windows.Controls.TextBox)(target));
                return;

            case 12:
                this.rdbMasc = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 13:
                this.rdbFem = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 14:
                this.txtNascimento = ((AC.AvalonControlsLibrary.Controls.MaskedTextBox)(target));
                return;

            case 15:
                this.txtCpf = ((AC.AvalonControlsLibrary.Controls.MaskedTextBox)(target));
                return;

            case 16:
                this.cmbTipoSangue = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 17:
                this.cmbEtnia = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 18:
                this.cmbUf = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 19:
                this.txtCep = ((AC.AvalonControlsLibrary.Controls.MaskedTextBox)(target));
                return;

            case 20:
                this.txtLogradouro = ((System.Windows.Controls.TextBox)(target));
                return;

            case 21:
                this.txtNumero = ((System.Windows.Controls.TextBox)(target));
                return;

            case 22:
                this.txtComplemento = ((System.Windows.Controls.TextBox)(target));
                return;

            case 23:
                this.txtBairro = ((System.Windows.Controls.TextBox)(target));
                return;

            case 24:
                this.txtRegistro = ((System.Windows.Controls.TextBox)(target));
                return;

            case 25:
                this.cmbTipo = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 26:
                this.txtMarca = ((System.Windows.Controls.TextBox)(target));
                return;

            case 27:
                this.txtCalibre = ((System.Windows.Controls.TextBox)(target));
                return;

            case 28:
                this.txtNumSerie = ((System.Windows.Controls.TextBox)(target));
                return;

            case 29:
                this.txtDataExpedicao = ((AC.AvalonControlsLibrary.Controls.MaskedTextBox)(target));
                return;

            case 30:
                this.imgFoto = ((System.Windows.Controls.Image)(target));
                return;

            case 31:
                this.btnCarregar = ((System.Windows.Controls.Button)(target));

            #line 461 "..\..\..\FORMS\CadAgente.xaml"
                this.btnCarregar.Click += new System.Windows.RoutedEventHandler(this.btnCarregar_Click);

            #line default
            #line hidden
                return;

            case 32:
                this.btnExcluir = ((System.Windows.Controls.Button)(target));

            #line 462 "..\..\..\FORMS\CadAgente.xaml"
                this.btnExcluir.Click += new System.Windows.RoutedEventHandler(this.btnExcluir_Click);

            #line default
            #line hidden
                return;

            case 33:
                this.imgDigital = ((System.Windows.Controls.Image)(target));
                return;

            case 34:
                this.btnCarregarDigital = ((System.Windows.Controls.Button)(target));

            #line 465 "..\..\..\FORMS\CadAgente.xaml"
                this.btnCarregarDigital.Click += new System.Windows.RoutedEventHandler(this.btnCarregarDigital_Click);

            #line default
            #line hidden
                return;

            case 35:
                this.btnExcluirDigital = ((System.Windows.Controls.Button)(target));

            #line 466 "..\..\..\FORMS\CadAgente.xaml"
                this.btnExcluirDigital.Click += new System.Windows.RoutedEventHandler(this.btnExcluirDigital_Click);

            #line default
            #line hidden
                return;

            case 36:
                this.btnCadastrar = ((System.Windows.Controls.Button)(target));

            #line 467 "..\..\..\FORMS\CadAgente.xaml"
                this.btnCadastrar.Click += new System.Windows.RoutedEventHandler(this.btnCadastrar_Click);

            #line default
            #line hidden
                return;

            case 37:
                this.btnCancelar = ((System.Windows.Controls.Button)(target));

            #line 468 "..\..\..\FORMS\CadAgente.xaml"
                this.btnCancelar.Click += new System.Windows.RoutedEventHandler(this.btnCancelar_Click);

            #line default
            #line hidden
                return;

            case 38:
                this.cmbCargo = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 39:
                this.rdbArmSim = ((System.Windows.Controls.RadioButton)(target));

            #line 473 "..\..\..\FORMS\CadAgente.xaml"
                this.rdbArmSim.Checked += new System.Windows.RoutedEventHandler(this.rdbArmSim_Checked);

            #line default
            #line hidden
                return;

            case 40:
                this.rdbArmNao = ((System.Windows.Controls.RadioButton)(target));

            #line 474 "..\..\..\FORMS\CadAgente.xaml"
                this.rdbArmNao.Checked += new System.Windows.RoutedEventHandler(this.rdbArmNao_Checked);

            #line default
            #line hidden
                return;

            case 41:
                this.txtCidade = ((System.Windows.Controls.TextBox)(target));
                return;

            case 42:
                this.cmbEstadoCivil = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 43:
                this.btnLimpar = ((System.Windows.Controls.Button)(target));

            #line 485 "..\..\..\FORMS\CadAgente.xaml"
                this.btnLimpar.Click += new System.Windows.RoutedEventHandler(this.btnLimpar_Click);

            #line default
            #line hidden
                return;

            case 44:
                this.cnvPhoto = ((System.Windows.Controls.Canvas)(target));
                return;

            case 45:
                this.btnLoadCam = ((System.Windows.Controls.Button)(target));

            #line 496 "..\..\..\FORMS\CadAgente.xaml"
                this.btnLoadCam.Click += new System.Windows.RoutedEventHandler(this.btnLoadCam_Click);

            #line default
            #line hidden
                return;

            case 46:
                this.btnLoadFolder = ((System.Windows.Controls.Button)(target));

            #line 499 "..\..\..\FORMS\CadAgente.xaml"
                this.btnLoadFolder.Click += new System.Windows.RoutedEventHandler(this.btnLoadFolder_Click);

            #line default
            #line hidden
                return;

            case 47:
                this.btnClose = ((System.Windows.Controls.Button)(target));

            #line 510 "..\..\..\FORMS\CadAgente.xaml"
                this.btnClose.Click += new System.Windows.RoutedEventHandler(this.btnClose_Click);

            #line default
            #line hidden
                return;

            case 48:
                this.txtRg = ((System.Windows.Controls.TextBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 2
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.MetroWindow = ((sistemaCorporativo.FORMS.cadAgente.CadAgente)(target));
     
     #line 13 "..\..\..\FORMS\CadAgente.xaml"
     this.MetroWindow.Loaded += new System.Windows.RoutedEventHandler(this.MetroWindow_Loaded);
     
     #line default
     #line hidden
     
     #line 13 "..\..\..\FORMS\CadAgente.xaml"
     this.MetroWindow.KeyUp += new System.Windows.Input.KeyEventHandler(this.MetroWindow_KeyUp);
     
     #line default
     #line hidden
     return;
     case 2:
     this.grdCadastro = ((System.Windows.Controls.Grid)(target));
     return;
     case 3:
     this.gConsultar = ((System.Windows.Controls.TabItem)(target));
     return;
     case 4:
     this.txtPesquisar = ((System.Windows.Controls.TextBox)(target));
     return;
     case 5:
     this.dgvConteudo = ((System.Windows.Controls.DataGrid)(target));
     return;
     case 6:
     this.btnCancelar1 = ((System.Windows.Controls.Button)(target));
     
     #line 340 "..\..\..\FORMS\CadAgente.xaml"
     this.btnCancelar1.Click += new System.Windows.RoutedEventHandler(this.btnCancelar1_Click);
     
     #line default
     #line hidden
     return;
     case 7:
     this.btnGerarLogin = ((System.Windows.Controls.Button)(target));
     
     #line 341 "..\..\..\FORMS\CadAgente.xaml"
     this.btnGerarLogin.Click += new System.Windows.RoutedEventHandler(this.btnGerarLogin_Click);
     
     #line default
     #line hidden
     return;
     case 8:
     this.btnExcluirAgente = ((System.Windows.Controls.Button)(target));
     
     #line 342 "..\..\..\FORMS\CadAgente.xaml"
     this.btnExcluirAgente.Click += new System.Windows.RoutedEventHandler(this.btnExcluirAgente_Click);
     
     #line default
     #line hidden
     return;
     case 9:
     this.btnEditar = ((System.Windows.Controls.Button)(target));
     
     #line 343 "..\..\..\FORMS\CadAgente.xaml"
     this.btnEditar.Click += new System.Windows.RoutedEventHandler(this.btnEditar_Click);
     
     #line default
     #line hidden
     return;
     case 10:
     this.gCadastrar = ((System.Windows.Controls.TabItem)(target));
     return;
     case 11:
     this.txtNome = ((System.Windows.Controls.TextBox)(target));
     return;
     case 12:
     this.rdbMasc = ((System.Windows.Controls.RadioButton)(target));
     return;
     case 13:
     this.rdbFem = ((System.Windows.Controls.RadioButton)(target));
     return;
     case 14:
     this.txtNascimento = ((AC.AvalonControlsLibrary.Controls.MaskedTextBox)(target));
     return;
     case 15:
     this.txtCpf = ((AC.AvalonControlsLibrary.Controls.MaskedTextBox)(target));
     return;
     case 16:
     this.cmbTipoSangue = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 17:
     this.cmbEtnia = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 18:
     this.cmbUf = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 19:
     this.txtCep = ((AC.AvalonControlsLibrary.Controls.MaskedTextBox)(target));
     return;
     case 20:
     this.txtLogradouro = ((System.Windows.Controls.TextBox)(target));
     return;
     case 21:
     this.txtNumero = ((System.Windows.Controls.TextBox)(target));
     return;
     case 22:
     this.txtComplemento = ((System.Windows.Controls.TextBox)(target));
     return;
     case 23:
     this.txtBairro = ((System.Windows.Controls.TextBox)(target));
     return;
     case 24:
     this.txtRegistro = ((System.Windows.Controls.TextBox)(target));
     return;
     case 25:
     this.cmbTipo = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 26:
     this.txtMarca = ((System.Windows.Controls.TextBox)(target));
     return;
     case 27:
     this.txtCalibre = ((System.Windows.Controls.TextBox)(target));
     return;
     case 28:
     this.txtNumSerie = ((System.Windows.Controls.TextBox)(target));
     return;
     case 29:
     this.txtDataExpedicao = ((AC.AvalonControlsLibrary.Controls.MaskedTextBox)(target));
     return;
     case 30:
     this.imgFoto = ((System.Windows.Controls.Image)(target));
     return;
     case 31:
     this.btnCarregar = ((System.Windows.Controls.Button)(target));
     
     #line 461 "..\..\..\FORMS\CadAgente.xaml"
     this.btnCarregar.Click += new System.Windows.RoutedEventHandler(this.btnCarregar_Click);
     
     #line default
     #line hidden
     return;
     case 32:
     this.btnExcluir = ((System.Windows.Controls.Button)(target));
     
     #line 462 "..\..\..\FORMS\CadAgente.xaml"
     this.btnExcluir.Click += new System.Windows.RoutedEventHandler(this.btnExcluir_Click);
     
     #line default
     #line hidden
     return;
     case 33:
     this.imgDigital = ((System.Windows.Controls.Image)(target));
     return;
     case 34:
     this.btnCarregarDigital = ((System.Windows.Controls.Button)(target));
     
     #line 465 "..\..\..\FORMS\CadAgente.xaml"
     this.btnCarregarDigital.Click += new System.Windows.RoutedEventHandler(this.btnCarregarDigital_Click);
     
     #line default
     #line hidden
     return;
     case 35:
     this.btnExcluirDigital = ((System.Windows.Controls.Button)(target));
     
     #line 466 "..\..\..\FORMS\CadAgente.xaml"
     this.btnExcluirDigital.Click += new System.Windows.RoutedEventHandler(this.btnExcluirDigital_Click);
     
     #line default
     #line hidden
     return;
     case 36:
     this.btnCadastrar = ((System.Windows.Controls.Button)(target));
     
     #line 467 "..\..\..\FORMS\CadAgente.xaml"
     this.btnCadastrar.Click += new System.Windows.RoutedEventHandler(this.btnCadastrar_Click);
     
     #line default
     #line hidden
     return;
     case 37:
     this.btnCancelar = ((System.Windows.Controls.Button)(target));
     
     #line 468 "..\..\..\FORMS\CadAgente.xaml"
     this.btnCancelar.Click += new System.Windows.RoutedEventHandler(this.btnCancelar_Click);
     
     #line default
     #line hidden
     return;
     case 38:
     this.cmbCargo = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 39:
     this.rdbArmSim = ((System.Windows.Controls.RadioButton)(target));
     
     #line 473 "..\..\..\FORMS\CadAgente.xaml"
     this.rdbArmSim.Checked += new System.Windows.RoutedEventHandler(this.rdbArmSim_Checked);
     
     #line default
     #line hidden
     return;
     case 40:
     this.rdbArmNao = ((System.Windows.Controls.RadioButton)(target));
     
     #line 474 "..\..\..\FORMS\CadAgente.xaml"
     this.rdbArmNao.Checked += new System.Windows.RoutedEventHandler(this.rdbArmNao_Checked);
     
     #line default
     #line hidden
     return;
     case 41:
     this.txtCidade = ((System.Windows.Controls.TextBox)(target));
     return;
     case 42:
     this.cmbEstadoCivil = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 43:
     this.btnLimpar = ((System.Windows.Controls.Button)(target));
     
     #line 485 "..\..\..\FORMS\CadAgente.xaml"
     this.btnLimpar.Click += new System.Windows.RoutedEventHandler(this.btnLimpar_Click);
     
     #line default
     #line hidden
     return;
     case 44:
     this.cnvPhoto = ((System.Windows.Controls.Canvas)(target));
     return;
     case 45:
     this.btnLoadCam = ((System.Windows.Controls.Button)(target));
     
     #line 496 "..\..\..\FORMS\CadAgente.xaml"
     this.btnLoadCam.Click += new System.Windows.RoutedEventHandler(this.btnLoadCam_Click);
     
     #line default
     #line hidden
     return;
     case 46:
     this.btnLoadFolder = ((System.Windows.Controls.Button)(target));
     
     #line 499 "..\..\..\FORMS\CadAgente.xaml"
     this.btnLoadFolder.Click += new System.Windows.RoutedEventHandler(this.btnLoadFolder_Click);
     
     #line default
     #line hidden
     return;
     case 47:
     this.btnClose = ((System.Windows.Controls.Button)(target));
     
     #line 510 "..\..\..\FORMS\CadAgente.xaml"
     this.btnClose.Click += new System.Windows.RoutedEventHandler(this.btnClose_Click);
     
     #line default
     #line hidden
     return;
     case 48:
     this.txtRg = ((System.Windows.Controls.TextBox)(target));
     return;
     }
     this._contentLoaded = true;
 }