public static bool ImportShortcuts(ref string defaultPath)
        {
            ShortcutsImportViewModel viewModel = new ShortcutsImportViewModel();

            viewModel.ImportPath = defaultPath;

            ShortcutsImportDialog dlg = new ShortcutsImportDialog(viewModel);

            dlg.DataContext = viewModel;

            bool?wasOK = dlg.ShowDialog();

            defaultPath = viewModel.ImportPath;
            return(wasOK.HasValue && wasOK.Equals(true));
        }
 public ShortcutsImportDialog(ShortcutsImportViewModel viewModel)
 {
     this.viewModel = viewModel;
     InitializeComponent();
 }