Exemplo n.º 1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.myWindow = ((Semana04.View.ManCategoria)(target));
                return;

            case 2:
                this.lblID = ((System.Windows.Controls.Label)(target));
                return;

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

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

            case 5:
                this.btnGrabar = ((System.Windows.Controls.Button)(target));
                return;

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

            case 7:
                this.btnCerrar = ((System.Windows.Controls.Button)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 2
0
        private void BtnNuevo_Click(object sender, RoutedEventArgs e)
        {
            View.ManCategoria manCategoria = new View.ManCategoria();
            manCategoria.ShowDialog();


            //Coloco 0 porque es uno nuevo
            //ManCategoria manCategoria = new ManCategoria(0);
            //manCategoria.ShowDialog();
            //Cargar();
        }
Exemplo n.º 3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.myWindow = ((Semana04.View.ManCategoria)(target));
                return;

            case 2:
                this.txtId = ((System.Windows.Controls.Label)(target));
                return;

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

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

            case 5:
                this.btnGuardar = ((System.Windows.Controls.Button)(target));

            #line 32 "..\..\..\View\ManCategoria.xaml"
                this.btnGuardar.Click += new System.Windows.RoutedEventHandler(this.BntGrabar_Click);

            #line default
            #line hidden
                return;

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

            #line 33 "..\..\..\View\ManCategoria.xaml"
                this.btnCerrar.Click += new System.Windows.RoutedEventHandler(this.BntCerrar_Click);

            #line default
            #line hidden
                return;

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

            #line 37 "..\..\..\View\ManCategoria.xaml"
                this.btnEliminar.Click += new System.Windows.RoutedEventHandler(this.BtnEliminar_Click);

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