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