Beispiel #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);
     }
 }
Beispiel #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);
            }
        }
Beispiel #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);
        }