Ejemplo n.º 1
0
 public void RemoveDecorativeColumn(Point ubicationPoint)
 {
     if (ExistDecorativeColumn(ubicationPoint))
     {
         DecorativeColumn decorativeColumn = this.DecorativeColumns.First(anotherDecorativeColumn => anotherDecorativeColumn.UbicationPoint.Equals(ubicationPoint));
         DECORATIVECOLUMN_HANDLER.Remove(this, decorativeColumn);
     }
 }
Ejemplo n.º 2
0
        public void AddDecorativeColumn(Graphics graphic, Point ubicationPoint)
        {
            PriceAndCost priceAndCost = PRICE_AND_COST_HANDLER.GetPriceAndCostDecorativeColumn();

            if (FreePosition(ubicationPoint))
            {
                DecorativeColumn decorativeColumn = new DecorativeColumn(ubicationPoint);
                DECORATIVECOLUMN_HANDLER.Add(this, decorativeColumn, priceAndCost);
            }
        }
Ejemplo n.º 3
0
        public override bool Equals(object decorativeColumnObject)
        {
            bool isEqual = false;

            if (decorativeColumnObject != null && this.GetType().Equals(decorativeColumnObject.GetType()))
            {
                DecorativeColumn decorativeColumn = (DecorativeColumn)decorativeColumnObject;
                if (this.UbicationPoint.Equals(decorativeColumn.UbicationPoint))
                {
                    isEqual = true;
                }
            }
            return(isEqual);
        }