示例#1
0
 private void BuildAttribute(string aspect, DictionaryAttribute attribute, StringBuilder attributesTextBuilder)
 {
     if (!attribute.IsKey && attribute.IsValueAssigned(aspect) &&
         (IsDefaultAspect(aspect, attribute.Parent) || attribute.IsLocalized)){
         attributesTextBuilder.Append(" ");
         attributesTextBuilder.Append(attribute.Name);
         attributesTextBuilder.Append("=\"");
         attributesTextBuilder.Append(HttpUtility.HtmlEncode(attribute.GetValue(aspect)));
         attributesTextBuilder.Append("\"");
     }
 }
        private PropertyDictionaryProxy CreateProxy(SerializedProperty property, SerializedProperty keys, SerializedProperty values, DictionaryAttribute dictionaryAttribute)
        {
            var drawer  = this.GetNextDrawer();
            var tooltip = this.GetTooltip();
            var proxy   = new PropertyDictionaryProxy(property, keys, values, drawer)
            {
                Tooltip      = tooltip,
                AllowAdd     = dictionaryAttribute.AllowAdd != null,
                AllowRemove  = dictionaryAttribute.AllowRemove != null,
                AllowReorder = dictionaryAttribute.AllowReorder != null
            };

            if (dictionaryAttribute.EmptyLabel != null)
            {
                proxy.EmptyLabel = dictionaryAttribute.EmptyLabel;
            }

            return(proxy);
        }
示例#3
0
 public void DictionaryAttributeChanged(DictionaryAttribute entity, UpdateOperations operation)
 {
     CheckIsAdminOrSystem();
 }