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

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

            return(viewModel);
        }