Brush GetRowForegroundColor(Common.EmergencyState emergencyState, bool bIsSelected, Brush curBrush) { if (emergencyState == Common.EmergencyState.EmergencyActive && Common.AppSettings.Instance.WorkstationMode == Common.RadioLogMode.Fireground) { return(Brushes.White); } else if (bIsSelected) { return(Brushes.Black); } else { return(curBrush); } }
Brush GetRowBackgroundColor(Common.EmergencyState emergencyState, bool bIsSelected) { if (Common.AppSettings.Instance.WorkstationMode != Common.RadioLogMode.Fireground) { return(Brushes.Transparent); } if (emergencyState == Common.EmergencyState.EmergencyActive) { return(Brushes.Red); } else if (bIsSelected) { return(Brushes.Orange); } else { return(Brushes.Transparent); } }