Пример #1
0
 /// <summary>
 /// Initializes a new instance of the ExplorerBarInfo class with
 /// default settings
 /// </summary>
 public ExplorerBarInfo()
 {
     this.taskPane = new TaskPaneInfo();
     this.taskItem = new TaskItemInfo();
     this.expando  = new ExpandoInfo();
     this.header   = new HeaderInfo();
 }
Пример #2
0
        /// <summary>
        /// Populates the ExpandoInfoSurrogate with data that is to be
        /// serialized from the specified ExpandoInfo
        /// </summary>
        /// <param name="expandoInfo">The ExpandoInfo that contains the data
        /// to be serialized</param>
        public void Load(ExpandoInfo expandoInfo)
        {
            this.SpecialBackColor = Tools.Drawing.ConvertColorToString(expandoInfo.SpecialBackColor);
            this.NormalBackColor  = Tools.Drawing.ConvertColorToString(expandoInfo.NormalBackColor);

            this.SpecialBorder = expandoInfo.SpecialBorder;
            this.NormalBorder  = expandoInfo.NormalBorder;

            this.SpecialBorderColor = Tools.Drawing.ConvertColorToString(expandoInfo.SpecialBorderColor);
            this.NormalBorderColor  = Tools.Drawing.ConvertColorToString(expandoInfo.NormalBorderColor);

            this.SpecialPadding = expandoInfo.SpecialPadding;
            this.NormalPadding  = expandoInfo.NormalPadding;

            this.SpecialBackImage = expandoInfo.SpecialBackImage.ToByteArray();
            this.NormalBackImage  = expandoInfo.NormalBackImage.ToByteArray();

            this.WatermarkAlignment = expandoInfo.WatermarkAlignment;
        }
Пример #3
0
        /// <summary>
        /// Returns an ExpandoInfo that contains the deserialized ExpandoInfoSurrogate data
        /// </summary>
        /// <returns>An ExpandoInfo that contains the deserialized ExpandoInfoSurrogate data</returns>
        public ExpandoInfo Save()
        {
            ExpandoInfo expandoInfo = new ExpandoInfo();

            expandoInfo.SpecialBackColor = Tools.Drawing.ConvertStringToColor(this.SpecialBackColor);
            expandoInfo.NormalBackColor  = Tools.Drawing.ConvertStringToColor(this.NormalBackColor);

            expandoInfo.SpecialBorder = this.SpecialBorder;
            expandoInfo.NormalBorder  = this.NormalBorder;

            expandoInfo.SpecialBorderColor = Tools.Drawing.ConvertStringToColor(this.SpecialBorderColor);
            expandoInfo.NormalBorderColor  = Tools.Drawing.ConvertStringToColor(this.NormalBorderColor);

            expandoInfo.SpecialPadding = this.SpecialPadding;
            expandoInfo.NormalPadding  = this.NormalPadding;

            expandoInfo.SpecialBackImage = this.SpecialBackImage.ToImage();
            expandoInfo.NormalBackImage  = this.NormalBackImage.ToImage();

            expandoInfo.WatermarkAlignment = this.WatermarkAlignment;

            return(expandoInfo);
        }