if (Settings.EnableColors)
{
if (Settings.EnableRed) { content.Add("Color red", Color.Red);}
if (Settings.EnableGreen) { content.Add("Color green", Color.Green);}
if (Settings.EnableBlue) { content.Add("Color blue", Color.Blue);}
if (Settings.EnableYellow) { content.Add("Color yellow", Color.Yellow);}
}
The list contains more than 1000 entries, and every few minutes this "if statements" must be checked if true or false. Is there any other way around to have them saved in a profile list or something, and that list to be loaded on demand...? Or any faster method to check them?
Aucun commentaire:
Enregistrer un commentaire