public string GetParameterStringById(int type, int paramId, ScriptTypeId scriptTypeId) { BaseTypeInformation baseTypeInformation = GetTypeByScriptTypeId(type, scriptTypeId); if (baseTypeInformation == null) { return("Unused Parameter"); } switch (paramId) { case 1: return(!String.IsNullOrEmpty(baseTypeInformation.parameterString1) ? baseTypeInformation.parameterString1 : "Unused Parameter"); case 2: return(!String.IsNullOrEmpty(baseTypeInformation.parameterString2) ? baseTypeInformation.parameterString2 : "Unused Parameter"); case 3: return(!String.IsNullOrEmpty(baseTypeInformation.parameterString3) ? baseTypeInformation.parameterString3 : "Unused Parameter"); case 4: return(!String.IsNullOrEmpty(baseTypeInformation.parameterString4) ? baseTypeInformation.parameterString4 : "Unused Parameter"); case 5: return(!String.IsNullOrEmpty(baseTypeInformation.parameterString5) ? baseTypeInformation.parameterString5 : "Unused Parameter"); case 6: return(!String.IsNullOrEmpty(baseTypeInformation.parameterString6) ? baseTypeInformation.parameterString6 : "Unused Parameter"); default: return("Unused Parameter"); } }
public string GetParameterTooltipById(int type, int paramId, ScriptTypeId scriptTypeId) { BaseTypeInformation baseTypeInformation = GetTypeByScriptTypeId(type, scriptTypeId); switch (paramId) { case 1: return(baseTypeInformation != null ? baseTypeInformation.parameterTooltip1 : String.Empty); case 2: return(baseTypeInformation != null ? baseTypeInformation.parameterTooltip2 : String.Empty); case 3: return(baseTypeInformation != null ? baseTypeInformation.parameterTooltip3 : String.Empty); case 4: return(baseTypeInformation != null ? baseTypeInformation.parameterTooltip4 : String.Empty); case 5: return(baseTypeInformation != null ? baseTypeInformation.parameterTooltip5 : String.Empty); case 6: return(baseTypeInformation != null ? baseTypeInformation.parameterTooltip6 : String.Empty); default: return(String.Empty); } }
public string GetParameterStringById(int type, int paramId, ScriptTypeId scriptTypeId) { BaseTypeInformation baseTypeInformation = GetTypeByScriptTypeId(type, scriptTypeId); switch (paramId) { case 1: return(baseTypeInformation != null ? baseTypeInformation.parameterString1 : "Unused Parameter"); case 2: return(baseTypeInformation != null ? baseTypeInformation.parameterString2 : "Unused Parameter"); case 3: return(baseTypeInformation != null ? baseTypeInformation.parameterString3 : "Unused Parameter"); case 4: return(baseTypeInformation != null ? baseTypeInformation.parameterString4 : "Unused Parameter"); case 5: return(baseTypeInformation != null ? baseTypeInformation.parameterString5 : "Unused Parameter"); case 6: return(baseTypeInformation != null ? baseTypeInformation.parameterString6 : "Unused Parameter"); default: return("Unused Parameter"); } }
public string GetScriptTypeTooltipById(int type, ScriptTypeId scriptTypeId) { BaseTypeInformation baseTypeInformation = GetTypeByScriptTypeId(type, scriptTypeId); return(baseTypeInformation != null ? baseTypeInformation.tooltip : String.Empty); }