public static bool GetShortcutsName(ref string defaultName)
        {
            // Open dialog with default name
            SaveShortcutsViewModel viewModel = new SaveShortcutsViewModel(defaultName);
            bool?wasOK = new SaveShortcutsDialog(viewModel).ShowDialog();

            // Get value from model
            defaultName = viewModel.ShortcutsName;
            // Return success of dialog
            return(wasOK.HasValue && wasOK.Equals(true));
        }
 public SaveShortcutsDialog(SaveShortcutsViewModel viewModel)
 {
     this.viewModel = viewModel;
     DataContext    = this.viewModel;
     InitializeComponent();
 }