void FillList(string[] fileNames)
{
Sources = new Dictionary<string, string>();
foreach (var fileName in fileNames)
{
var lbItem = new ListBoxItem(fileName, Path.GetFileName(fileName));
Sources[lbItem.Key] = File.ReadAllText(lbItem.Key);
lbInputFiles.Items.Add(lbItem);
}
}