private Color GetColorForConfidence(NIcaoWarnings warnings, NIcaoWarnings flag, byte confidence) { if ((warnings & flag) == flag) { return(confidence <= 100 ? WarningColor : IndeterminateColor); } return(NoWarningColor); }
private Color GetColorForFlags(NIcaoWarnings warnings, params NIcaoWarnings[] flags) { return(flags.Any(f => (f & warnings) == f) ? WarningColor : NoWarningColor); }