Exemplo n.º 1
0
 private void Clear(object commandParameter)
 {
     _log.Debug("Reset TourLog Search klicked");
     TourLogs.Clear();
     SearchName = "";
     FillTourLogListBox(_mainViewModel.tourListUcViewModel.CurrentItem);
 }
Exemplo n.º 2
0
        private void Search(object commandParameter)
        {
            _log.Debug("Search TourLog klicked");
            IEnumerable foundItems = _tourPlannerFactory.SearchTourLog(SearchName, _mainViewModel.tourListUcViewModel.CurrentItem);

            TourLogs.Clear();
            foreach (TourLog item in foundItems)
            {
                TourLogs.Add(item);
            }
        }
Exemplo n.º 3
0
 public void FillTourLogListBox(Tour tour)
 {
     _log.Debug("TourLog Collection gets filled");
     if (tour != null)
     {
         TourLogs.Clear();
         foreach (var log in this._tourPlannerFactory.GetTourLogs(tour))
         {
             TourLogs.Add(log);
         }
     }
     else
     {
         _log.Warn("No Tour selected");
         MessageBox.Show("No Tour selected!", "TourLog List Fill", MessageBoxButton.OK, MessageBoxImage.Error);
     }
 }