Пример #1
0
 public SearchViewModel(MainWindowFunctions mainWindowFunctions, OnlineSearchResultsDataAccess onlineSearchResultsDataAccess)
 {
     _headerControl = new HeaderControlEntity()
     {
         IsHeaderVisible      = true,
         IsTitleVisible       = true,
         IsDescriptionVisible = true,
         Title = Properties.SearchViewResource.Title
     };
     ConfigureHeaderControl(_headerControl);
     _mainWindowFunctions           = mainWindowFunctions;
     _onlineSearchResultsDataAccess = onlineSearchResultsDataAccess;
 }
Пример #2
0
 public MainWindowViewModel(MainWindowFunctions mainWindowFunctions)
 {
     ApplyTheme();
     _mainWindowFunctions = mainWindowFunctions;
     SearchControlAction  = OnSearch;
 }
 public StartViewModel(MainWindowFunctions mainWindowFunctions, OnlineSearchResultsDataAccess onlineSearchResultsDataAccess)
     : base(mainWindowFunctions, onlineSearchResultsDataAccess)
 {
     ConfigureHeaderControl(false);
     SearchControlAction = DisplayStartViewResults;
 }