public MainViewModel(UserSettingStorage settings) { _queryTextBeforeLoadContextMenu = ""; _queryText = ""; _lastQuery = new Query(); _settings = settings; _queryHistory = QueryHistoryStorage.Instance; _userSelectedRecord = UserSelectedRecordStorage.Instance; _topMostRecord = TopMostRecordStorage.Instance; InitializeResultListBox(); InitializeContextMenu(); InitializeKeyCommands(); }
public ResultsViewModel(UserSettingStorage settings, TopMostRecordStorage topMostRecord) { _settings = settings; _topMostRecord = topMostRecord; }