Ejemplo n.º 1
0
        /// <summary>
        /// 渲染主题
        /// </summary>
        public void RenderSkin()
        {
            _Skin = JSkinManage.JFormSkin.Clone();
            if (RenderSkinCallback != null)
            {
                RenderSkinCallback(_Skin);
            }

            Invalidate();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 渲染主题
        /// </summary>
        public void RenderSkin()
        {
            //BackgroundImage = JSkinManage.JFormSkin.BackgroundImage;
            //BackColor = JSkinManage.JFormSkin.BackColor;
            _Skin = JSkinManage.JFormSkin;
            if (RenderSkinCallback != null)
            {
                RenderSkinCallback(_Skin);
            }

            Invalidate();
        }
Ejemplo n.º 3
0
        /// <summary>
        /// 克隆对象
        /// </summary>
        /// <returns></returns>
        public JFormSkin Clone()
        {
            var newobj = new JFormSkin();

            newobj.BackColor             = this.BackColor;
            newobj.BackgroundImage       = this.BackgroundImage;
            newobj.BackgroundMode        = this.BackgroundMode;
            newobj.BorderColor           = this.BorderColor;
            newobj.ForeColor             = this.ForeColor;
            newobj.FuzzyRadius           = this.FuzzyRadius;
            newobj.GID                   = this.GID;
            newobj.HeaderBackColor       = this.HeaderBackColor;
            newobj.HeaderBackgroundImage = this.HeaderBackgroundImage;
            newobj.HeaderHeight          = this.HeaderHeight;
            newobj.TitleColor            = this.TitleColor;
            return(newobj);
            //var zj = SerializeObject(this);

            //return (JFormSkin)DeserializeObject(zj);
        }