Exemplo n.º 1
0
 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);
     }
 }
Exemplo n.º 2
0
 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);
     }
 }