private void DgvCategoria_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            var          item         = (Categoria)dgvCategoria.SelectedItem;
            ManCategoria manCategoria = new ManCategoria(item);

            manCategoria.ShowDialog();
        }
Exemple #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.myWindow = ((Vista.ManCategoria)(target));
                return;

            case 2:
                this.txtID = ((System.Windows.Controls.TextBox)(target));
                return;

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

            case 4:
                this.txtDescripcion = ((System.Windows.Controls.TextBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
        private void BtnNuevo_Click(object sender, RoutedEventArgs e)
        {
            ManCategoria manCategoria = new ManCategoria(null);

            manCategoria.ShowDialog();
        }