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

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

            return(viewModel);
        }