Пример #1
0
        private void Historal_Click(object sender, RoutedEventArgs e)
        {
            HistorialView addFactura = new HistorialView();
            ReadOnlySalidaConfiguracionViewModel viewModel = this.ConvertDataContext(this.DataContext);

            addFactura.DataContext = viewModel.CreateHistorialViewModel();
            addFactura.ShowDialog();
        }
Пример #2
0
        private ReadOnlySalidaConfiguracionViewModel ConvertDataContext(object dataSource)
        {
            ReadOnlySalidaConfiguracionViewModel viewModel = dataSource as ReadOnlySalidaConfiguracionViewModel;

            return(viewModel);
        }