Пример #1
0
        /// <summary>
        /// 添加一个属于颜色的属性框
        /// </summary>
        /// <param name="name">属性名称</param>
        /// <param name="value">属性值</param>
        protected void AddColorPropertyControl(string name, Color value)
        {
            ///创建一个颜色选择器添加
            ColorSelectorControl colorcontrol = new ColorSelectorControl();

            colorcontrol.SetInitBaseInfo(name, value, this.ChildInfoCallBack);
            ///添加颜色框
            this.ContentList.Items.Add(colorcontrol);
        }
 /// <summary>
 /// 设置属性属性
 /// </summary>
 public void SetColorValue(ColorSelectorControl ColorControl)
 {
     this.ColorControl = ColorControl;
 }