private bool IsFilterMatch(EarthQuakeData e) { var matchMagnitude = MagnitudeFilter.Contains(e.Magnitude); var matchDepth = DepthFilter.Contains(e.Depth); var matchLatitude = LatitudeFilter.Contains(e.Latitude); var matchLongitude = LongitudeFilter.Contains(e.Longitude); var matchRegion = SelectedRegions.Contains(e.Region); bool matchTime; //if (TimeFilter.IsCustom) //{ // matchTime = TimeFilter.Contains(e.Updated); //} //else //{ matchTime = e.Updated >= GetActualTimeMin(); //} return(matchMagnitude && matchDepth && matchTime && matchLatitude && matchLongitude && matchRegion); }