public static void DisplayPreferences(DisplayPreviewModuleDataModel dataModel)
        {
            var viewModel = new PreferencesViewModel(dataModel);
            var view      = new PreferencesView {
                DataContext = viewModel
            };

            view.ShowDialog();
        }
 public static void DisplayPreferences(DisplayPreviewModuleDataModel dataModel)
 {
     var viewModel = new PreferencesViewModel(dataModel);
     var view = new PreferencesView { DataContext = viewModel };
     view.ShowDialog();
 }