public FilterSettingsViewModel(string filePath) { if (File.Exists(filePath)) { this.Model = FilterSettings.Load(filePath); } else { this.Model = new FilterSettings(); } _filePath = filePath; _editLock = new object(); }