Пример #1
0
        public override void BindControlField(ControlFormResult controlForm, object value)
        {
            var attribute = new ControlGridAttribute(MinPhotos, MaxPhotos)
            {
                PropertyName     = Name,
                LabelText        = Title,
                PropertyType     = typeof(List <MediaPart>),
                ShowLabelControl = false,
                EnabledScroll    = true
            };

            controlForm.AddProperty(Name, attribute, value);
        }
Пример #2
0
        public override void BindControlField(ControlFormResult controlForm, object value)
        {
            var attribute = new ControlGridAttribute(0, MaxPhotos)
            {
                PropertyName     = Name,
                LabelText        = Title,
                PropertyType     = typeof(List <PictureTooltip>),
                ShowLabelControl = false,
                EnabledScroll    = true
            };

            controlForm.RegisterExternalDataSource(Name + ".Button", "moregold", "moregrey", "moreblack", "moredarkblue", "moreblue", "morelightblue", "morelightblue2", "morewatergreen", "morelightgreen", "moregreen", "moreyellow", "moreorange", "morered", "morepurple", "moreviolet", "morelightviolet", "morefucsia");
            controlForm.RegisterExternalDataSource(Name + ".Background", "bgblack", "bgwhite");
            controlForm.RegisterExternalDataSource(Name + ".Round", "roundBgW", "roundBgB");
            controlForm.RegisterExternalDataSource(Name + ".AnimationType", "ltr-slide", "rtl-slide", "btt-slide", "ttb-slide");

            controlForm.AddProperty(Name, attribute, value);
        }