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

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

            return(viewModel);
        }