Exemplo n.º 1
0
        public override bool Equals(System.Object object_Renamed)
        {
            bool isEqual = false;

            if (base.Equals(object_Renamed) && (object_Renamed is ShapeWithStyle))
            {
                ShapeWithStyle shapeWithStyle = (ShapeWithStyle)object_Renamed;

                if ((((shapeWithStyle.fillstyles == null) && (this.fillstyles == null)) || ((shapeWithStyle.fillstyles != null) && (this.fillstyles != null) && ArrayLists.equals(shapeWithStyle.fillstyles, this.fillstyles))) && (((shapeWithStyle.linestyles == null) && (this.linestyles == null)) || ((shapeWithStyle.linestyles != null) && (this.linestyles != null) && ArrayLists.equals(shapeWithStyle.linestyles, this.linestyles))))
                {
                    isEqual = true;
                }
            }

            return(isEqual);
        }
Exemplo n.º 2
0
		private ShapeWithStyle decodeShapeWithStyle(int shape)
		{
			ShapeWithStyle sw = new ShapeWithStyle();
			
			r.syncBits();
			
			sw.fillstyles = decodeFillstyles(shape);
			sw.linestyles = decodeLinestyles(shape);
			
			Shape s = decodeShape(shape);
			
			sw.shapeRecords = s.shapeRecords;
			
			return sw;
		}