public EditShortcutsuPanel()
 {
     InitializeComponent();
     _serialzer = new XmlSerializer(typeof(List<KeyShortcutModel>));
     _shortcutsEditor = new EditKeyShortcutInAddinFiles();
     Shortcuts = ModelToView(_shortcutsEditor.KeyShortcuts);
     _shortcutsView.DataContext = Shortcuts;
     foreach (var element in Shortcuts) {
         element.PropertyChanged += new PropertyChangedEventHandler(ShortcutChange);
     }
     string defaultShortcutsFile = Path.Combine(SHORTCUTS_DEFAULT_DIRECTORY,"default.sht");
     if (!File.Exists(defaultShortcutsFile)) {
         SaveKeyShortcutsToFile(defaultShortcutsFile);
     }
 }
        public EditShortcutsuPanel()
        {
            InitializeComponent();
            _serialzer                 = new XmlSerializer(typeof(List <KeyShortcutModel>));
            _shortcutsEditor           = new EditKeyShortcutInAddinFiles();
            Shortcuts                  = ModelToView(_shortcutsEditor.KeyShortcuts);
            _shortcutsView.DataContext = Shortcuts;
            foreach (var element in Shortcuts)
            {
                element.PropertyChanged += new PropertyChangedEventHandler(ShortcutChange);
            }
            string defaultShortcutsFile = Path.Combine(SHORTCUTS_DEFAULT_DIRECTORY, "default.sht");

            if (!File.Exists(defaultShortcutsFile))
            {
                SaveKeyShortcutsToFile(defaultShortcutsFile);
            }
        }