private void Historal_Click(object sender, RoutedEventArgs e)
        {
            HistorialView addFactura = new HistorialView();
            ReadOnlyEntradaDesistalacionViewModel viewModel = this.ConvertDataContext(this.DataContext);

            addFactura.DataContext = viewModel.CreateHistorialViewModel();
            addFactura.ShowDialog();
        }
        private ReadOnlyEntradaDesistalacionViewModel ConvertDataContext(object dataSource)
        {
            ReadOnlyEntradaDesistalacionViewModel viewModel = dataSource as ReadOnlyEntradaDesistalacionViewModel;

            return(viewModel);
        }