Пример #1
0
 private string GetCmsObjectTypeName(EkEnumeration.CustomPropertyObjectType type)
 {
     return _siteApi.EkMsgRef.GetMessage(CmsObjectTypePrefix + type.ToString());
 }
Пример #2
0
 private string GetObjectTypeString(EkEnumeration.CustomPropertyObjectType objectType)
 {
     return m_refMsg.GetMessage((string)("CmsObjectType" + objectType.ToString()));
 }
Пример #3
0
    /// <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;
    }