예제 #1
0
        public static CustomPropertyDefinition SingleChoice(string name, int offset = 0, string label = null, params string[] possibleValues)
        {
            var result = new CustomPropertyDefinition(SchemaPropertyType.SingleChoice, name, label ?? name, offset, true);

            result.PossibleValues.AddRange(possibleValues);
            return(result);
        }
예제 #2
0
 public PropertySchema AddCustomDefinition(CustomPropertyDefinition definition)
 {
     CustomPropertyDefinitions.Add(definition);
     return(this);
 }
예제 #3
0
        public static PropertySchema Create(CustomPropertyDefinition customPropertyDefinition)
        {
            var result = new PropertySchema();

            return(result.AddCustomDefinition(customPropertyDefinition));
        }
예제 #4
0
 public CustomProperty(CustomPropertyDefinition definition, object value)
 {
     Definition = definition;
     Value      = value;
 }