private void Historal_Click(object sender, RoutedEventArgs e) { HistorialView addFactura = new HistorialView(); ModifyEquipoViewModel viewModel = this.ConvertDataContext(this.DataContext); addFactura.DataContext = viewModel.CreateHistorialViewModel(); addFactura.ShowDialog(); }
private ModifyEquipoViewModel ConvertDataContext(object dataSource) { ModifyEquipoViewModel viewModel = dataSource as ModifyEquipoViewModel; return(viewModel); }