Inheritance: INotifyPropertyChanged
Esempio n. 1
0
 public SearchWindow(GwupeClientAppContext appContext)
 {
     this.InitializeComponent();
     _appContext = appContext;
     _searchResults = new SearchResultControlList(_appContext, Dispatcher);
     try
     {
         _searchResults.SetList(_appContext.SearchManager.SearchResults, "Username");
     }
     catch (Exception e)
     {
         Logger.Error("Failed to set the list : " + e.Message, e);
     }
     SearchResults.ItemsSource = _searchResults.List;
     _dataContext = new SearchWindowDataContext();
     DataContext = _dataContext;
 }
 public SearchWindow(GwupeClientAppContext appContext)
 {
     this.InitializeComponent();
     _appContext    = appContext;
     _searchResults = new SearchResultControlList(_appContext, Dispatcher);
     try
     {
         _searchResults.SetList(_appContext.SearchManager.SearchResults, "Username");
     }
     catch (Exception e)
     {
         Logger.Error("Failed to set the list : " + e.Message, e);
     }
     SearchResults.ItemsSource = _searchResults.List;
     _dataContext = new SearchWindowDataContext();
     DataContext  = _dataContext;
 }