private void Historal_Click(object sender, RoutedEventArgs e) { HistorialView addFactura = new HistorialView(); ModifyArticuloViewModel viewModel = this.ConvertDataContext(this.DataContext); addFactura.DataContext = viewModel.CreateHistorialViewModel(); addFactura.ShowDialog(); }
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; }
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; }
public AddModeloViewModel(CatalogModeloViewModel catalogModeloViewModel, ModifyArticuloViewModel artVM) { _artMod = artVM; this._modelo = new ModeloModel(new ModeloDataMapper(), artVM.Articulo.ActualUser); this._catalogModeloViewModel = catalogModeloViewModel; }