Пример #1
0
        public void Delete(string stylname)
        {
            WizardCustomStyles wizardStyles = this[stylname];

            if (wizardStyles != null)
            {
                this.innerList.Remove(wizardStyles);
            }
        }
Пример #2
0
        public int Add(WizardCustomStyles wizardCustomStyles)
        {
            WizardCustomStyles wizardStyles = this[wizardCustomStyles.StyleName];

            if (wizardStyles != null)
            {
                return(-1);
            }

            wizardCustomStyles.TemplateType = this.templateType;

            return(this.innerList.Add(wizardCustomStyles));
        }
Пример #3
0
        public void ApplyStyle(WizardCustomStyles style)
        {
            if (style == null)
            {
                return;
            }

            this._StyleName = style.StyleName;

            this._Image           = style.Image;
            this.NoWaterMarkImage = style.NoWaterMarkImage;
            this._ExcontrolStyles.ApplyStyle(style._ExcontrolStyles);
            this.templateType           = style.templateType;
            this._SerializableWatermark = style._SerializableWatermark;
        }
Пример #4
0
        public WizardCustomStyles Copy()
        {
            WizardCustomStyles thiscopy = new WizardCustomStyles();

            thiscopy._StyleName = this._StyleName;
            if (_Image != null)
            {
                thiscopy._Image = new Bitmap(this._Image);
            }
            if (NoWaterMarkImage != null)
            {
                thiscopy.NoWaterMarkImage = new Bitmap(this.NoWaterMarkImage);
            }
            thiscopy._ExcontrolStyles.ApplyStyle(this._ExcontrolStyles);
            thiscopy.templateType           = this.templateType;
            thiscopy._SerializableWatermark = this._SerializableWatermark;
            return(thiscopy);
        }