private void UpdateImageAndVideoWarnings(ImageWarnings imageWarnings, ImageStreamWarnings imageStreamWarnings) { // Using .NET Enum functions to see what Warnings we received LightLowBox.IsChecked = imageWarnings.HasFlag(ImageWarnings.LightLow); StrongBacklightingBox.IsChecked = imageWarnings.HasFlag(ImageWarnings.StrongBacklighting); TooManyPeople.IsChecked = imageWarnings.HasFlag(ImageWarnings.TooManyPeople); }
private void CheckImageWarnings(StringBuilder sb) { if (imageWarnings.HasFlag(ImageWarnings.LightLow)) { sb.Append(" - Low lighting\n"); } if (imageWarnings.HasFlag(ImageWarnings.StrongBacklighting)) { sb.Append(" - Strong backlighting\n"); } if (imageWarnings.HasFlag(ImageWarnings.TooManyPeople)) { sb.Append(" - Too many people\n"); } }
private void UpdateImageAndVideoWarnings(ImageWarnings imageWarnings, ImageStreamWarnings imageStreamWarnings) { // Using .NET Enum functions to see what Warnings we received LightLowBox.IsChecked = imageWarnings.HasFlag(ImageWarnings.LightLow); StrongBacklightingBox.IsChecked = imageWarnings.HasFlag(ImageWarnings.StrongBacklighting); TooManyPeople.IsChecked = imageWarnings.HasFlag(ImageWarnings.TooManyPeople); }