private string GetCmsObjectTypeName(EkEnumeration.CustomPropertyObjectType type)
 {
     return _siteApi.EkMsgRef.GetMessage(CmsObjectTypePrefix + type.ToString());
 }
 private string GetObjectTypeString(EkEnumeration.CustomPropertyObjectType objectType)
 {
     return m_refMsg.GetMessage((string)("CmsObjectType" + objectType.ToString()));
 }
    /// <summary>
    /// Returns the appropriate message for the specified CustomPropertyStyleType.
    /// </summary>
    /// <param name="type">Custom property style type</param>
    /// <returns>Message for the specified CustomPropertyStyleType</returns>
    public string GetDisplayTypeDescription(EkEnumeration.CustomPropertyStyleType type)
    {
        string message = string.Empty;

        switch (type)
        {
            case EkEnumeration.CustomPropertyStyleType.SingleSelect:
                message = _messageHelper.GetMessage("custom prop single value");
                break;
            case EkEnumeration.CustomPropertyStyleType.MultiSelect:
                message = _messageHelper.GetMessage("custom prop list value");
                break;
            default:
                throw new InvalidOperationException("No message available for the specified type: " + type.ToString());
        }

        return message;
    }