public ImportShortcuts(List <VSShortcut> shortcuts)
        {
            var shortcutUIs = new List <VSShortcutUI>();

            foreach (var shortcut in shortcuts)
            {
                shortcutUIs.Add(new VSShortcutUI(true, shortcut, setSelectAllFalse));
            }
            var importShortcutsDataModel = new ImportShortcutsDataModel(shortcutUIs);

            this.DataContext = importShortcutsDataModel;
            InitializeComponent();
            ((FrameworkElement)this.Resources["ProxyElement"]).DataContext = importShortcutsDataModel;
        }
        public ImportShortcuts(string chosenFile, XDocument vsSettingsXDoc, List <VSShortcut> shortcuts)
        {
            // Store the input parameters
            this.chosenFile     = chosenFile;
            this.vsSettingsXDoc = vsSettingsXDoc;
            this.shortcuts      = shortcuts;

            // Convert shortcut objects to UI objects
            var shortcutUIs = new List <VSShortcutUI>();

            foreach (var shortcut in shortcuts)
            {
                shortcutUIs.Add(new VSShortcutUI(true, shortcut, setSelectAllFalse));
            }

            var importShortcutsDataModel = new ImportShortcutsDataModel(shortcutUIs);

            this.DataContext = importShortcutsDataModel;
            InitializeComponent();
            ((FrameworkElement)this.Resources["ProxyElement"]).DataContext = importShortcutsDataModel;
        }