C# coding for colours not working completely
===

Hi I've a pie chart and I wanted 3 specific colours there i code this: but only the red colour is display. instead of green it display blue. instead of the yellow is a dark gold colour. Is this code correct? if so why the colours not display correctly?
 
foreach
 
(PatientAllergyalrg inpatientAllergies)
 
{               

if(alrg.Description == "Allergies") alrg.Color = newSolidColorBrush(Colors.Green);                
 
elseif(alrg.Description == "No Allergies") alrg.Color = newSolidColorBrush(Colors.Red);              elseif(alrg.Description == "Unknown") alrg.Color = newSolidColorBrush(Colors.Yellow);
 
                }
 
                completionHandler(patientAllergies);
 
            });
