Exemplo n.º 1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.metroWindow = ((WPFBeLife.MainWindow)(target));
                return;

            case 2:
                this.Logo = ((System.Windows.Controls.Image)(target));
                return;

            case 3:
                this.contraste = ((System.Windows.Controls.Image)(target));
                return;

            case 4:
                this.ListarCliente1 = ((MahApps.Metro.Controls.Tile)(target));

            #line 22 "..\..\MainWindow.xaml"
                this.ListarCliente1.Click += new System.Windows.RoutedEventHandler(this.ListarCliente_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.listacliente = ((System.Windows.Controls.Image)(target));
                return;

            case 6:
                this.ListarContrato1 = ((MahApps.Metro.Controls.Tile)(target));

            #line 33 "..\..\MainWindow.xaml"
                this.ListarContrato1.Click += new System.Windows.RoutedEventHandler(this.ListarContrato_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.listacliente1 = ((System.Windows.Controls.Image)(target));
                return;

            case 8:
                this.HOME = ((System.Windows.Controls.Grid)(target));
                return;

            case 9:
                this.Cliente = ((MahApps.Metro.Controls.Tile)(target));

            #line 46 "..\..\MainWindow.xaml"
                this.Cliente.Click += new System.Windows.RoutedEventHandler(this.Cliente_Click);

            #line default
            #line hidden
                return;

            case 10:

            #line 56 "..\..\MainWindow.xaml"
                ((MahApps.Metro.Controls.Tile)(target)).Click += new System.Windows.RoutedEventHandler(this.ListarCliente_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.listacliente3 = ((System.Windows.Controls.Image)(target));
                return;

            case 12:
                this.Contrato = ((MahApps.Metro.Controls.Tile)(target));

            #line 69 "..\..\MainWindow.xaml"
                this.Contrato.Click += new System.Windows.RoutedEventHandler(this.Contrato_Click);

            #line default
            #line hidden
                return;

            case 13:

            #line 81 "..\..\MainWindow.xaml"
                ((MahApps.Metro.Controls.Tile)(target)).Click += new System.Windows.RoutedEventHandler(this.ListarContrato_Click);

            #line default
            #line hidden
                return;

            case 14:
                this.listacliente5 = ((System.Windows.Controls.Image)(target));
                return;

            case 15:
                this.Cliente1 = ((MahApps.Metro.Controls.Tile)(target));

            #line 95 "..\..\MainWindow.xaml"
                this.Cliente1.Click += new System.Windows.RoutedEventHandler(this.Cliente_Click);

            #line default
            #line hidden
                return;

            case 16:
                this.Contrato1 = ((MahApps.Metro.Controls.Tile)(target));

            #line 106 "..\..\MainWindow.xaml"
                this.Contrato1.Click += new System.Windows.RoutedEventHandler(this.Contrato_Click);

            #line default
            #line hidden
                return;

            case 17:
                this.Home = ((MahApps.Metro.Controls.Tile)(target));

            #line 117 "..\..\MainWindow.xaml"
                this.Home.Click += new System.Windows.RoutedEventHandler(this.Home_Click);

            #line default
            #line hidden
                return;

            case 18:
                this.Cliente_FO = ((MahApps.Metro.Controls.Flyout)(target));
                return;

            case 19:
                this.TxtRut = ((System.Windows.Controls.TextBox)(target));
                return;

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

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

            case 22:
                this.CbSexo = ((System.Windows.Controls.ComboBox)(target));

            #line 288 "..\..\MainWindow.xaml"
                this.CbSexo.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.CPlan_SelectionChanged);

            #line default
            #line hidden
                return;

            case 23:
                this.DpFechaNacimiento = ((System.Windows.Controls.DatePicker)(target));
                return;

            case 24:
                this.CbEstadoCivil = ((System.Windows.Controls.ComboBox)(target));

            #line 302 "..\..\MainWindow.xaml"
                this.CbEstadoCivil.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.CPlan_SelectionChanged);

            #line default
            #line hidden
                return;

            case 25:
                this.BtnRegistrarCliente = ((MahApps.Metro.Controls.Tile)(target));

            #line 310 "..\..\MainWindow.xaml"
                this.BtnRegistrarCliente.Click += new System.Windows.RoutedEventHandler(this.BtnRegistrarCliente_Click);

            #line default
            #line hidden
                return;

            case 26:
                this.BtnEliminarCliente = ((MahApps.Metro.Controls.Tile)(target));

            #line 319 "..\..\MainWindow.xaml"
                this.BtnEliminarCliente.Click += new System.Windows.RoutedEventHandler(this.BtnEliminarCliente_Click);

            #line default
            #line hidden
                return;

            case 27:
                this.BtnActualizarCliente = ((MahApps.Metro.Controls.Tile)(target));

            #line 328 "..\..\MainWindow.xaml"
                this.BtnActualizarCliente.Click += new System.Windows.RoutedEventHandler(this.BtnActualizarCliente_Click);

            #line default
            #line hidden
                return;

            case 28:
                this.BtnConsultar = ((MahApps.Metro.Controls.Tile)(target));

            #line 337 "..\..\MainWindow.xaml"
                this.BtnConsultar.Click += new System.Windows.RoutedEventHandler(this.BtnConsultar_Click);

            #line default
            #line hidden
                return;

            case 29:
                this.ListarClientes = ((MahApps.Metro.Controls.Tile)(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 = ((WPFBeLife.MainWindow)(target));
                return;

            case 2:
                this.Logo = ((System.Windows.Controls.Image)(target));
                return;

            case 3:
                this.ListarCliente1 = ((MahApps.Metro.Controls.Tile)(target));

            #line 21 "..\..\MainWindow.xaml"
                this.ListarCliente1.Click += new System.Windows.RoutedEventHandler(this.ListarCliente_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.listacliente = ((System.Windows.Controls.Image)(target));
                return;

            case 5:
                this.ListarContrato1 = ((MahApps.Metro.Controls.Tile)(target));

            #line 32 "..\..\MainWindow.xaml"
                this.ListarContrato1.Click += new System.Windows.RoutedEventHandler(this.ListarContrato_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.listacliente1 = ((System.Windows.Controls.Image)(target));
                return;

            case 7:
                this.HOME = ((System.Windows.Controls.Grid)(target));
                return;

            case 8:
                this.Cliente = ((MahApps.Metro.Controls.Tile)(target));

            #line 45 "..\..\MainWindow.xaml"
                this.Cliente.Click += new System.Windows.RoutedEventHandler(this.Cliente_Click);

            #line default
            #line hidden
                return;

            case 9:

            #line 55 "..\..\MainWindow.xaml"
                ((MahApps.Metro.Controls.Tile)(target)).Click += new System.Windows.RoutedEventHandler(this.ListarCliente_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.listacliente3 = ((System.Windows.Controls.Image)(target));
                return;

            case 11:
                this.Contrato = ((MahApps.Metro.Controls.Tile)(target));

            #line 68 "..\..\MainWindow.xaml"
                this.Contrato.Click += new System.Windows.RoutedEventHandler(this.Contrato_Click);

            #line default
            #line hidden
                return;

            case 12:

            #line 80 "..\..\MainWindow.xaml"
                ((MahApps.Metro.Controls.Tile)(target)).Click += new System.Windows.RoutedEventHandler(this.ListarContrato_Click);

            #line default
            #line hidden
                return;

            case 13:
                this.listacliente5 = ((System.Windows.Controls.Image)(target));
                return;

            case 14:
                this.Cliente1 = ((MahApps.Metro.Controls.Tile)(target));

            #line 94 "..\..\MainWindow.xaml"
                this.Cliente1.Click += new System.Windows.RoutedEventHandler(this.Cliente_Click);

            #line default
            #line hidden
                return;

            case 15:
                this.Contrato1 = ((MahApps.Metro.Controls.Tile)(target));

            #line 105 "..\..\MainWindow.xaml"
                this.Contrato1.Click += new System.Windows.RoutedEventHandler(this.Contrato_Click);

            #line default
            #line hidden
                return;

            case 16:
                this.Contraste = ((MahApps.Metro.Controls.Tile)(target));

            #line 116 "..\..\MainWindow.xaml"
                this.Contraste.Click += new System.Windows.RoutedEventHandler(this.Cliente_Click);

            #line default
            #line hidden
                return;

            case 17:
                this.Contrato_FO = ((MahApps.Metro.Controls.Flyout)(target));
                return;

            case 18:
                this.TxtContratoRut = ((System.Windows.Controls.TextBox)(target));

            #line 133 "..\..\MainWindow.xaml"
                this.TxtContratoRut.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TxtContratoRut_TextChanged);

            #line default
            #line hidden
                return;

            case 19:
                this.TxtContratoApellido = ((System.Windows.Controls.TextBox)(target));
                return;

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

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

            case 22:
                this.CbContratoPlanes = ((System.Windows.Controls.ComboBox)(target));

            #line 162 "..\..\MainWindow.xaml"
                this.CbContratoPlanes.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.CbContratoPlanes_SelectionChanged);

            #line default
            #line hidden
                return;

            case 23:
                this.DpContratoInicio = ((System.Windows.Controls.DatePicker)(target));
                return;

            case 24:
                this.AgregarContrato = ((MahApps.Metro.Controls.Tile)(target));

            #line 178 "..\..\MainWindow.xaml"
                this.AgregarContrato.Click += new System.Windows.RoutedEventHandler(this.AgregarContrato_Click);

            #line default
            #line hidden
                return;

            case 25:
                this.ActualizarContrato = ((MahApps.Metro.Controls.Tile)(target));
                return;

            case 26:
                this.EliminarContrato = ((MahApps.Metro.Controls.Tile)(target));
                return;

            case 27:
                this.BuscarContrato = ((MahApps.Metro.Controls.Tile)(target));

            #line 207 "..\..\MainWindow.xaml"
                this.BuscarContrato.Click += new System.Windows.RoutedEventHandler(this.BuscarContrato_Click);

            #line default
            #line hidden
                return;

            case 28:
                this.ListarContrato = ((MahApps.Metro.Controls.Tile)(target));
                return;

            case 29:
                this.LbContratoTipoPlan = ((System.Windows.Controls.Label)(target));
                return;

            case 30:
                this.LbPoliza = ((System.Windows.Controls.Label)(target));
                return;

            case 31:
                this.LbPrimaAnual = ((System.Windows.Controls.Label)(target));
                return;

            case 32:
                this.LbPrimaMensual = ((System.Windows.Controls.Label)(target));
                return;

            case 33:
                this.ChBContratoEstaVigente = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 34:
                this.ChBContratoSalud = ((System.Windows.Controls.CheckBox)(target));

            #line 243 "..\..\MainWindow.xaml"
                this.ChBContratoSalud.Checked += new System.Windows.RoutedEventHandler(this.CheckBox_Checked);

            #line default
            #line hidden
                return;

            case 35:
                this.TxtBkContratoObserva = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 36:
                this.Cliente_FO = ((MahApps.Metro.Controls.Flyout)(target));
                return;

            case 37:
                this.TxtRut = ((System.Windows.Controls.TextBox)(target));
                return;

            case 38:
                this.TxtNombre = ((System.Windows.Controls.TextBox)(target));
                return;

            case 39:
                this.TxtApellido = ((System.Windows.Controls.TextBox)(target));
                return;

            case 40:
                this.CbSexo = ((System.Windows.Controls.ComboBox)(target));

            #line 287 "..\..\MainWindow.xaml"
                this.CbSexo.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.CPlan_SelectionChanged);

            #line default
            #line hidden
                return;

            case 41:
                this.DpFechaNacimiento = ((System.Windows.Controls.DatePicker)(target));
                return;

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

            #line 301 "..\..\MainWindow.xaml"
                this.CbEstadoCivil.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.CPlan_SelectionChanged);

            #line default
            #line hidden
                return;

            case 43:
                this.BtnRegistrarCliente = ((MahApps.Metro.Controls.Tile)(target));

            #line 309 "..\..\MainWindow.xaml"
                this.BtnRegistrarCliente.Click += new System.Windows.RoutedEventHandler(this.BtnRegistrarCliente_Click);

            #line default
            #line hidden
                return;

            case 44:
                this.BtnEliminarCliente = ((MahApps.Metro.Controls.Tile)(target));

            #line 318 "..\..\MainWindow.xaml"
                this.BtnEliminarCliente.Click += new System.Windows.RoutedEventHandler(this.BtnEliminarCliente_Click);

            #line default
            #line hidden
                return;

            case 45:
                this.BtnActualizarCliente = ((MahApps.Metro.Controls.Tile)(target));

            #line 327 "..\..\MainWindow.xaml"
                this.BtnActualizarCliente.Click += new System.Windows.RoutedEventHandler(this.BtnActualizarCliente_Click);

            #line default
            #line hidden
                return;

            case 46:
                this.BtnConsultar = ((MahApps.Metro.Controls.Tile)(target));

            #line 336 "..\..\MainWindow.xaml"
                this.BtnConsultar.Click += new System.Windows.RoutedEventHandler(this.BtnConsultar_Click);

            #line default
            #line hidden
                return;

            case 47:
                this.ListarClientes = ((MahApps.Metro.Controls.Tile)(target));
                return;

            case 48:
                this.Cliente_Listar = ((MahApps.Metro.Controls.Flyout)(target));
                return;

            case 49:
                this.TxtRutList = ((System.Windows.Controls.TextBox)(target));
                return;

            case 50:
                this.CbSexoListaCli = ((System.Windows.Controls.ComboBox)(target));

            #line 374 "..\..\MainWindow.xaml"
                this.CbSexoListaCli.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.CbSexoListaCli_SelectionChanged);

            #line default
            #line hidden
                return;

            case 51:
                this.CbEstadoCivilListaCli = ((System.Windows.Controls.ComboBox)(target));

            #line 381 "..\..\MainWindow.xaml"
                this.CbEstadoCivilListaCli.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.CbEstadoCivilListaCli_SelectionChanged);

            #line default
            #line hidden
                return;

            case 52:
                this.BtnFiltrarClientes = ((MahApps.Metro.Controls.Tile)(target));

            #line 388 "..\..\MainWindow.xaml"
                this.BtnFiltrarClientes.Click += new System.Windows.RoutedEventHandler(this.BtnFiltrarClientes_Click);

            #line default
            #line hidden
                return;

            case 53:
                this.DgClientes = ((System.Windows.Controls.DataGrid)(target));

            #line 397 "..\..\MainWindow.xaml"
                this.DgClientes.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.DataGrid_SelectionChanged);

            #line default
            #line hidden
                return;

            case 54:
                this.Contrato_Listar = ((MahApps.Metro.Controls.Flyout)(target));
                return;

            case 55:
                this.CoRut = ((System.Windows.Controls.TextBox)(target));
                return;

            case 56:
                this.NContrato = ((System.Windows.Controls.TextBox)(target));
                return;

            case 57:
                this.TipoPlan2 = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 58:
                this.FiltroCliente = ((MahApps.Metro.Controls.Tile)(target));
                return;

            case 59:
                this.DgContratos = ((System.Windows.Controls.DataGrid)(target));

            #line 464 "..\..\MainWindow.xaml"
                this.DgContratos.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.DataGrid_SelectionChanged);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }