コード例 #1
0
        private void BtnAdministrarContratos_Click(object sender, RoutedEventArgs e)
        {
            AdminContratos cont = new AdminContratos()
            {
                Owner = this
            };

            cont.ShowDialog();
        }
コード例 #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.AdminContrato1 = ((OnBreak1._1.AdminContratos)(target));
                return;

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

            case 3:
                this.txtNumCont = ((System.Windows.Controls.TextBox)(target));
                return;

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

            case 5:
                this.txtRazonSocial = ((System.Windows.Controls.TextBox)(target));
                return;

            case 6:
                this.cbxTipoEvento = ((System.Windows.Controls.ComboBox)(target));

            #line 30 "..\..\AdminContratos.xaml"
                this.cbxTipoEvento.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.CbxTipoEvento_SelectionChanged_1);

            #line default
            #line hidden
                return;

            case 7:
                this.dpFechaCreacion1 = ((System.Windows.Controls.DatePicker)(target));
                return;

            case 8:
                this.dpFechaTermino = ((System.Windows.Controls.DatePicker)(target));
                return;

            case 9:
                this.cbxModalidad = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 10:
                this.dpHoraIni = ((System.Windows.Controls.DatePicker)(target));
                return;

            case 11:
                this.dpHoraTer = ((System.Windows.Controls.DatePicker)(target));
                return;

            case 12:
                this.txtCantAsis = ((System.Windows.Controls.TextBox)(target));
                return;

            case 13:
                this.txtPersonalAd = ((System.Windows.Controls.TextBox)(target));
                return;

            case 14:
                this.txtObs = ((System.Windows.Controls.TextBox)(target));
                return;

            case 15:
                this.checkVigencia = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 16:
                this.txtTotalPagar = ((System.Windows.Controls.TextBox)(target));
                return;

            case 17:
                this.btnBuscarrut = ((System.Windows.Controls.Button)(target));

            #line 42 "..\..\AdminContratos.xaml"
                this.btnBuscarrut.Click += new System.Windows.RoutedEventHandler(this.BtnBuscarrut_Click);

            #line default
            #line hidden
                return;

            case 18:
                this.imgBuscarrut = ((System.Windows.Controls.Image)(target));
                return;

            case 19:
                this.btnListarCont = ((System.Windows.Controls.Button)(target));

            #line 48 "..\..\AdminContratos.xaml"
                this.btnListarCont.Click += new System.Windows.RoutedEventHandler(this.BtnListarCont_Click);

            #line default
            #line hidden
                return;

            case 20:
                this.imglistacont = ((System.Windows.Controls.Image)(target));
                return;

            case 21:
                this.btnBuscarnum = ((System.Windows.Controls.Button)(target));

            #line 54 "..\..\AdminContratos.xaml"
                this.btnBuscarnum.Click += new System.Windows.RoutedEventHandler(this.BtnBuscarnum_Click);

            #line default
            #line hidden
                return;

            case 22:
                this.imgBuscarnum = ((System.Windows.Controls.Image)(target));
                return;

            case 23:
                this.btnModificar = ((System.Windows.Controls.Button)(target));

            #line 60 "..\..\AdminContratos.xaml"
                this.btnModificar.Click += new System.Windows.RoutedEventHandler(this.BtnModificar_Click);

            #line default
            #line hidden
                return;

            case 24:
                this.imgModificar = ((System.Windows.Controls.Image)(target));
                return;

            case 25:
                this.btnAgregar = ((System.Windows.Controls.Button)(target));

            #line 66 "..\..\AdminContratos.xaml"
                this.btnAgregar.Click += new System.Windows.RoutedEventHandler(this.BtnAgregar_Click);

            #line default
            #line hidden
                return;

            case 26:
                this.imgAgregar = ((System.Windows.Controls.Image)(target));
                return;

            case 27:
                this.btnMenu = ((System.Windows.Controls.Button)(target));

            #line 72 "..\..\AdminContratos.xaml"
                this.btnMenu.Click += new System.Windows.RoutedEventHandler(this.BtnMenu_Click);

            #line default
            #line hidden
                return;

            case 28:
                this.imgMenu = ((System.Windows.Controls.Image)(target));
                return;

            case 29:
                this.btnCalcular = ((System.Windows.Controls.Button)(target));

            #line 78 "..\..\AdminContratos.xaml"
                this.btnCalcular.Click += new System.Windows.RoutedEventHandler(this.BtnCalcular_Click);

            #line default
            #line hidden
                return;

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

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

            #line 84 "..\..\AdminContratos.xaml"
                this.btnTerminar.Click += new System.Windows.RoutedEventHandler(this.BtnTerminar_Click);

            #line default
            #line hidden
                return;

            case 32:
                this.imgterminar = ((System.Windows.Controls.Image)(target));
                return;
            }
            this._contentLoaded = true;
        }