Example #1
0
        public override bool CopyFrom(object obj)
        {
            var isCopied = base.CopyFrom(obj);

            if (isCopied && !object.ReferenceEquals(this, obj))
            {
                var from = obj as DensityImageLegend;
                if (null != from)
                {
                    _cachedArea = new DensityLegendArea(from._cachedArea)
                    {
                        ParentObject = this
                    };

                    ChildCloneToMember(ref _axisStyles, from._axisStyles);
                    _axisStyles.UpdateCoordinateSystem(_cachedArea.CoordinateSystem);
                    _axisStyles.ParentObject = this;

                    _bitmap = null != from._bitmap ? (Bitmap)from._bitmap.Clone() : null;

                    _plotItemProxy = new Main.RelDocNodeProxy(from._plotItemProxy, true, this);
                }
            }
            return(isCopied);
        }
Example #2
0
		public override bool CopyFrom(object obj)
		{
			var isCopied = base.CopyFrom(obj);
			if (isCopied && !object.ReferenceEquals(this, obj))
			{
				var from = obj as DensityImageLegend;
				if (null != from)
				{
					_cachedArea = new DensityLegendArea(from._cachedArea) { ParentObject = this };

					ChildCloneToMember(ref _axisStyles, from._axisStyles);
					this._axisStyles.UpdateCoordinateSystem(_cachedArea.CoordinateSystem);
					this._axisStyles.ParentObject = this;

					this._bitmap = null != from._bitmap ? (Bitmap)from._bitmap.Clone() : null;

					_plotItemProxy = new Main.RelDocNodeProxy(from._plotItemProxy, true, this);
				}
			}
			return isCopied;
		}