TooltipManager.getDeviceBackground C# (CSharp) 메소드

getDeviceBackground() 공개 정적인 메소드

public static getDeviceBackground ( ) : string
리턴 string
  public static string getDeviceBackground()
  {
    return _instance.deviceBackground;
  }
  public static string getBioBrickBackground()

Usage Example

예제 #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;
        }
    }