Esempio n. 1
0
        public MainViewModel(UserSettingStorage settings)
        {
            _queryTextBeforeLoadContextMenu = "";
            _queryText          = "";
            _lastQuery          = new Query();
            _settings           = settings;
            _queryHistory       = QueryHistoryStorage.Instance;
            _userSelectedRecord = UserSelectedRecordStorage.Instance;
            _topMostRecord      = TopMostRecordStorage.Instance;

            InitializeResultListBox();
            InitializeContextMenu();
            InitializeKeyCommands();
        }
Esempio n. 2
0
 public ResultsViewModel(UserSettingStorage settings, TopMostRecordStorage topMostRecord)
 {
     _settings      = settings;
     _topMostRecord = topMostRecord;
 }