Example #1
0
        private void NuevoItem(Object o)
        {
            this.ItemSeleccionado = new CatArticulosModel();

            CatArticulosDetView view = new CatArticulosDetView();

            view.DataContext = this;
            view.ArticuloControl.DataContext = this.ItemSeleccionado;
            view.ShowDialog();

            this.Buscar();
        }
Example #2
0
        private void ModificarItem(Object o)
        {
            this.ItemSeleccionado = Clonador.Clonar <CatArticulosModel>(this.ItemSeleccionado);

            CatArticulosDetView view = new CatArticulosDetView();

            view.DataContext = this;
            view.ArticuloControl.DataContext = this.ItemSeleccionado;

            view.ShowDialog();

            this.Buscar();
        }