Beispiel #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();
        }
Beispiel #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();
        }
Beispiel #3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Window = ((P05ABC.CatArticulosDetView)(target));
                return;

            case 2:
                this.ArticuloControl = ((P05ABC.Controles.ArticuloControlView)(target));
                return;
            }
            this._contentLoaded = true;
        }