Class UserInterfaceDefaults.UnitStatusBackground
Contains constants that define the background color codes for different unit statuses. Each color represents a state in the operational flow.
public static class UserInterfaceDefaults.UnitStatusBackground
- Inheritance
-
UserInterfaceDefaults.UnitStatusBackground
- Inherited Members
Fields
ArrivedAtDestination
public const string ArrivedAtDestination = "#A37E51"
Field Value
DriveToDestination
public const string DriveToDestination = "#F2E7D3"
Field Value
Individual
public const string Individual = "#2A2829"
Field Value
NotOnDuty
public const string NotOnDuty = "#373737"
Field Value
OnDuty
public const string OnDuty = "#0A8619"
Field Value
OnDutyAlongWay
public const string OnDutyAlongWay = "#0A8619"
Field Value
OnScene
public const string OnScene = "#263A99"
Field Value
OnTheWay
public const string OnTheWay = "#97B4DE"
Field Value
SpeakRequest
public const string SpeakRequest = "#FF7124"
Field Value
UrgentSpeakRequest
public const string UrgentSpeakRequest = "#EDFF00"
Field Value
Methods
Get()
Provides a dictionary mapping from UnitStatus codes to their respective color codes.
public static Dictionary<int, string> Get()
Returns
- Dictionary<int, string>
A dictionary with status codes as keys and color codes as values.
Get(int)
Retrieves the color associated with a given UnitStatus integer code.
public static string Get(int status)
Parameters
statusintThe status code of the unit.
Returns
- string
A string representing the hex color code.
Get(UnitStatus)
Retrieves the background color associated with a specific UnitStatus.
public static string Get(UnitStatus status)
Parameters
statusUnitStatusThe UnitStatus enum representing the unit's status.
Returns
- string
The hex color code as a string.
Exceptions
- ArgumentOutOfRangeException
Thrown when the status is not recognized.