示例#1
0
        public void StartSearch()
        {
            _selectedStart = null;
            var filtered = StartSearchService.Filter(_startText);

            if (_selectedEnd != null)
            {
                filtered.ToList().RemoveAll(x => ((Point)x.Item).RiverId != ((Point)_selectedEnd.Item).RiverId);
            }
            FilteredStart = filtered;
        }
示例#2
0
        public void EndSearch()
        {
            _selectedEnd = null;
            var filtered = StartSearchService.Filter(_endText);

            if (_selectedStart != null)
            {
                //todo: convert thESE to linq??
                //todo: fix thisssssss
                filtered.ToList().RemoveAll(x => ((Point)x.Item).RiverId != ((Point)_selectedStart.Item).RiverId);
            }
            FilteredEnd = filtered;
        }