TooltipManager.getDeviceBackground C# (CSharp) Méthode

getDeviceBackground() public static méthode

public static getDeviceBackground ( ) : string
Résultat string
  public static string getDeviceBackground()
  {
    return _instance.deviceBackground;
  }
  public static string getBioBrickBackground()

Usage Example

Exemple #1
0
    //TODO replace "type" of type string by type enum
    public TooltipInfo(
        string code,
        string title,
        TooltipManager.TooltipType tooltipType,
        string subtitle,
        string illustration,
        string customField,
        string customValue,
        string length,
        string reference,
        string energyConsumption,
        string explanation
        )
    {
        _code              = code;
        _title             = title;
        _tooltipType       = tooltipType;
        _subtitle          = subtitle;
        _illustration      = illustration;
        _customField       = customField;
        _customValue       = customValue;
        _length            = length;
        _reference         = reference;
        _energyConsumption = energyConsumption;
        _explanation       = explanation;

        switch (tooltipType)
        {
        case TooltipManager.TooltipType.BIOBRICK:
            _type       = TooltipLoader.biobrickKey;
            _background = TooltipManager.getBioBrickBackground();
            break;

        case TooltipManager.TooltipType.DEVICE:
            _type       = TooltipLoader.deviceKey;
            _background = TooltipManager.getDeviceBackground();
            break;

        default:
            _type       = TooltipLoader.biobrickKey;
            _background = TooltipManager.getBioBrickBackground();
            break;
        }
    }