예제 #1
0
        private void FilterAvailableErrorsList(int selectedAnalyser)
        {
            Debug.WriteLine($"Detected Analyser change: Analyser {selectedAnalyser}");
            FilteredErrorData.Clear();
            IEnumerable <ErrorDataModel> FilterResults = ErrorData.Where(e => e.AnalyserId == selectedAnalyser);

            Debug.WriteLine($"Filtered Results Count: {FilterResults.Count()}");


            foreach (var item in FilterResults)
            {
                FilteredErrorData.Add(item);
                Debug.WriteLine($"Match for Error Data, Message: {item.Message}");
                Debug.WriteLine($"Match for Error Data, Analyser Code: {item.AnalyserId}");
            }
        }