Ejemplo n.º 1
0
        private void Historal_Click(object sender, RoutedEventArgs e)
        {
            HistorialView             addFactura = new HistorialView();
            ModifyTransporteViewModel viewModel  = this.ConvertDataContext(this.DataContext);

            addFactura.DataContext = viewModel.CreateHistorialViewModel();
            addFactura.ShowDialog();
        }
Ejemplo n.º 2
0
        private ModifyTransporteViewModel ConvertDataContext(object dataSource)
        {
            ModifyTransporteViewModel viewModel = dataSource as ModifyTransporteViewModel;

            return(viewModel);
        }