private void saveUserShortcuts() { using (XmlWriter writer = new XmlTextWriter(this.m_UserPaths.ShortcutsPath, Encoding.UTF8)) { ShortcutDictionarySerializer.Serialize(r_ShortcutsToReplace, writer); } }
private void loadShortcuts() { if (File.Exists(this.m_UserPaths.ShortcutsPath)) { using (XmlReader reader = new XmlTextReader(this.m_UserPaths.ShortcutsPath)) { ShortcutDictionarySerializer.Deserialize(r_ShortcutsToReplace, reader); } } }