private void FileLocations_CollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e) { if (e.Action == NotifyCollectionChangedAction.Add || e.Action == NotifyCollectionChangedAction.Remove) { var firstNotSecond = FileLocations.Except(Parent.SettingContainer.Settings.GeneralSettings.FileLocations).ToList(); var secondNotFirst = Parent.SettingContainer.Settings.GeneralSettings.FileLocations.Except(FileLocations).ToList(); bool changed = firstNotSecond.Any() || secondNotFirst.Any(); if (changed) { Parent.SettingContainer.Settings.GeneralSettings.FileLocations = FileLocations.ToList(); Parent.UpdateSettings(false); } } }