private DotNetSettings() { _lastDiagramLocation = Property.New(this, p => p.LastDiagramLocation) .UsingPathEquality(); _rememberOpenFiles = Property.New(this, p => p.RememberOpenFiles); _openFiles = Property.New(this, p => p.OpenFiles) .UsingSequenceEquality(FileSystemInfoPathEqualityComparer.Instance); _recentFiles = new RecentFilesCollection(); _recentFiles.PropertyChanged += recentFiles_PropertyChanged; _autoSaveEnabled = Property.New(this, p => p.AutoSaveEnabled); _autoSaveInterval = Property.New(this, p => p.AutoSaveInterval); _highlightCurrentLine = Property.New(this, p => p.HighlightCurrentLine); _showLineNumbers = Property.New(this, p => p.ShowLineNumbers); _enableVirtualSpace = Property.New(this, p => p.EnableVirtualSpace); _enableWordWrap = Property.New(this, p => p.EnableWordWrap); _emptySelectionCopiesEntireLine = Property.New(this, p => p.EmptySelectionCopiesEntireLine); _allowScrollingBelowContent = Property.New(this, p => p.AllowScrollingBelowContent); }
private DotNetSettings() { _lastDiagramLocation = Property.New(this, p => p.LastDiagramLocation, OnPropertyChanged) .EqualWhen((oldValue, newValue) => CheckEquality(oldValue, newValue, (x, y) => x.FullName.Equals(y.FullName, StringComparison.OrdinalIgnoreCase))); _rememberOpenFiles = Property.New(this, p => p.RememberOpenFiles, OnPropertyChanged); _openFiles = Property.New(this, p => p.OpenFiles, OnPropertyChanged) .EqualWhen((oldValue, newValue) => CheckEquality(oldValue, newValue, (x, y) => x.SequenceEqual(y, FileInfoPathEqualityComparer.Instance))); _recentFiles = new RecentFilesCollection(); _recentFiles.PropertyChanged += recentFiles_PropertyChanged; _autoSaveEnabled = Property.New(this, p => p.AutoSaveEnabled, OnPropertyChanged); _autoSaveInterval = Property.New(this, p => p.AutoSaveInterval, OnPropertyChanged); _highlightCurrentLine = Property.New(this, p => p.HighlightCurrentLine, OnPropertyChanged); _showLineNumbers = Property.New(this, p => p.ShowLineNumbers, OnPropertyChanged); _enableVirtualSpace = Property.New(this, p => p.EnableVirtualSpace, OnPropertyChanged); _enableWordWrap = Property.New(this, p => p.EnableWordWrap, OnPropertyChanged); _emptySelectionCopiesEntireLine = Property.New(this, p => p.EmptySelectionCopiesEntireLine, OnPropertyChanged); _allowScrollingBelowContent = Property.New(this, p => p.AllowScrollingBelowContent, OnPropertyChanged); }