示例#1
0
        public void AddDefaultValue(String value)
        {
            if (base.defaultValueField == null)
            {
                this.InitDefaultField();
            }
            MultiCheckField defaultField = (MultiCheckField)base.defaultValueField;

            defaultField.AddValue(value);
        }
示例#2
0
        public void AddDefaultValueDO(Value value)
        {
            if (value == null)
            {
                return;
            }

            if (base.defaultValueField == null)
            {
                this.InitDefaultField();
            }
            MultiCheckField defaultField = (MultiCheckField)base.defaultValueField;

            defaultField.AddValue(value);
        }
示例#3
0
        public void SetDefaultValue(List <String> values)
        {
            if (base.defaultValueField == null)
            {
                this.InitDefaultField();
            }
            MultiCheckField defaultField = (MultiCheckField)base.defaultValueField;

            if (defaultField.GetValues() != null && defaultField.GetValues().Count > 0)
            {
                defaultField.GetValues().Clear();
            }
            foreach (String v in values)
            {
                defaultField.AddValue(v);
            }
        }
示例#4
0
        public void SetDefaultValueDO(List <Value> values)
        {
            if (values == null)
            {
                return;
            }

            if (base.defaultValueField == null)
            {
                this.InitDefaultField();
            }
            MultiCheckField defaultField = (MultiCheckField)base.defaultValueField;

            if (defaultField.GetValues() != null && defaultField.GetValues().Count > 0)
            {
                defaultField.GetValues().Clear();
            }
            foreach (Value v in values)
            {
                defaultField.AddValue(v);
            }
        }