Beispiel #1
0
 public SearchWindow(IEnumerable <SearchItem> searchItems)
     : this()
 {
     _viewModel = new SearchItemViewModel {
         SearchItems = new SearchItems()
     };
     foreach (var searchItem in searchItems)
     {
         _viewModel.SearchItems.Add(searchItem);
     }
     DataContext = _viewModel;
 }
 public SearchByCodeWindow()
 {
     InitializeComponent();
     _viewModel              = new SearchItemViewModel();
     txtKeyword.TextChanged += (sender, args) => FilterByKeyword();
 }