private void fileGrid_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            FileGridItem file = (FileGridItem)fileGrid.SelectedItem;

            if ((currentSelectedItem == null) || (currentSelectedItem.Id != file.Id))
            {
                currentSelectedItem = file;
                BrowserBehavior.SetHtml(fileReportWB, GenerateHtmlForFile(file));
            }
        }
        private void FillFileDataGrid(CodeAnalyzer.Interface.ICommonResults results)
        {
            int i    = 1;
            var list = new List <FileGridItem>();

            foreach (var result in results.Results)
            {
                var fileSource = result.File;
                var fileNames  = result.LinkedFiles.Select(x => x.GetFileName());
                list.Add(new FileGridItem(i, $"{fileSource.GetFileName()}", $"{result.Report}", fileNames.ToList()));
                i++;
            }
            fileGrid.ItemsSource = list;
            BrowserBehavior.SetHtml(totalReportWB, GenerateTotal(results, _fileSourceList));
        }