public ExtensionRecordsViewModel(WinDirStatViewModel viewModel) { this.viewModel = viewModel; model = viewModel.Model.Extensions; sortedRecords = new List <ExtensionRecordViewModel>(); records = new Dictionary <string, ExtensionRecordViewModel>(); model.CollectionChanged += OnModelCollectionChanged; }
public WinDirStatSettings(WinDirStatViewModel model) { this.model = model; Reset(); PropertyChanged += OnPropertyChanged; }