private Window CreateView(ViewModelBase viewModel)
        {
            Type viewType = _viewMappings[viewModel.GetType()];

            Window view = (Window)Activator.CreateInstance(viewType);
            viewModel.View = view;

            view.DataContext = viewModel;
            view.Loaded += (sender, args) => viewModel.Loaded();
            return view;
        }
 public void ShowDialog(ViewModelBase viewModel)
 {
     Window view = CreateView(viewModel);
     view.ShowDialog();
 }