private List <VSShortcut> ParseVSSettingsFile(XDocument vsSettingsXDoc)
        {
            // Initialize the list of parsed shortcuts to return
            var shortcutList = new List <VSShortcut>();

            // Grab the only child in the "UserShortcuts" node
            var userShortcuts = vsSettingsXDoc.Descendants("UserShortcuts");

            foreach (var userShortcut in userShortcuts)
            {
                // Parse each Shortcut entry
                foreach (var shortcut in userShortcut.Descendants())
                {
                    // Convert the XML of one row of Shortcut entry into a parsed VSShortcut object
                    VSShortcut parsedShortcutItem = CreateShortcutItem(shortcut);
                    if (parsedShortcutItem == null)
                    {
                        Debug.WriteLine("Skipping entry: " + shortcut.Value);
                        continue;
                    }

                    // Add successfully parsed VSShortcut to the list
                    shortcutList.Add(parsedShortcutItem);
                }
            }
            return(shortcutList);
        }
 public VSShortcutUI(bool included, VSShortcut shortcut, Action setSelectAllFalse)
 {
     this.isIncluded        = included;
     this.vsShortcut        = shortcut;
     this.setSelectAllFalse = setSelectAllFalse;
 }
 public VSShortcutUI(bool included, VSShortcut shortcut)
 {
     this.isIncluded = included;
     this.vsShortcut = shortcut;
 }