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

            addFactura.DataContext = viewModel.CreateHistorialViewModel();
            addFactura.ShowDialog();
        }
Example #2
0
        private ModifyEquipoViewModel ConvertDataContext(object dataSource)
        {
            ModifyEquipoViewModel viewModel = dataSource as ModifyEquipoViewModel;

            return(viewModel);
        }