示例#1
0
        private void Historal_Click(object sender, RoutedEventArgs e)
        {
            HistorialView           addFactura = new HistorialView();
            ModifyArticuloViewModel viewModel  = this.ConvertDataContext(this.DataContext);

            addFactura.DataContext = viewModel.CreateHistorialViewModel();
            addFactura.ShowDialog();
        }
示例#2
0
 public AddCategoriaViewModel(CatalogCategoriaViewModel catalogCategoriaViewModel, ModifyArticuloViewModel artVM)
 {
     _artMod            = artVM;
     this._addCategoria = new CategoriaModel(new CategoriaDataMapper(), artVM.Articulo.ActualUser);
     this._catalogCategoriaViewModel = catalogCategoriaViewModel;
 }
 public AddMarcaViewModel(CatalogMarcaViewModel catalogMarcaViewModel, ModifyArticuloViewModel artVM)
 {
     _artMod     = artVM;
     this._marca = new MarcaModel(new MarcaDataMapper(), artVM.Articulo.ActualUser);
     this._catalogMarcaViewModel = catalogMarcaViewModel;
 }
示例#4
0
        private ModifyArticuloViewModel ConvertDataContext(object dataSource)
        {
            ModifyArticuloViewModel viewModel = dataSource as ModifyArticuloViewModel;

            return(viewModel);
        }
 public AddEquipoViewModel(CatalogEquipoViewModel catalogEquipoViewModel, ModifyArticuloViewModel artVM)
 {
     _artMod      = artVM;
     this._equipo = new EquipoModel(new EquipoDataMapper(), artVM.Articulo.ActualUser);
     this._catalogEquipoViewModel = catalogEquipoViewModel;
 }
示例#6
0
 public AddModeloViewModel(CatalogModeloViewModel catalogModeloViewModel, ModifyArticuloViewModel artVM)
 {
     _artMod      = artVM;
     this._modelo = new ModeloModel(new ModeloDataMapper(), artVM.Articulo.ActualUser);
     this._catalogModeloViewModel = catalogModeloViewModel;
 }