internal void SetEvidence(
IDictionary<string, Tuple<FObservation, FRandomVariable[]>> evidences,
IDictionary<string, string> abbreviations)
{
var evidencesSorted
= evidences.OrderBy(kvp => kvp.Key);
xEvidenceList.Children.Clear();
foreach (var kvp in evidencesSorted)
{
// Scenario label.
TextBlock scenarioLabel = new TextBlock();
scenarioLabel.Text = kvp.Key;
xEvidenceList.Children.Add(scenarioLabel);
// Observation values.
Observation.Observation obsControl = new Observation.Observation();
var observation = kvp.Value.Item1;
var observationVariables = kvp.Value.Item2;
obsControl.SetData(observation, observationVariables, abbreviations);
xEvidenceList.Children.Add(obsControl);
obsControl.Margin = new Thickness(0, 0, 0, 12);
}
}