C# coding for colours not working completely
<p>I have a pie chart and I wanted 3 specific colours there i code this: but only the red colour is displayed. Instead of green it display blue. Instead of the yellow is a dark gold colour. Is this code correct? If so why are the colours not displayed correctly?</p>

<pre><code>foreach(PatientAllergy alrg in inpatientAllergies)
{               
    if(alrg.Description == "Allergies")
        alrg.Color = newSolidColorBrush Colors.Green);
    else if (alrg.Description == "No Allergies")
        alrg.Color = newSolidColorBrush(Colors.Red);
    else if (alrg.Description == "Unknown")
        alrg.Color = newSolidColorBrush(Colors.Yellow); 
}

completionHandler(patientAllergies);
</code></pre>
