public void RemoveDecorativeColumn(Point ubicationPoint) { if (ExistDecorativeColumn(ubicationPoint)) { DecorativeColumn decorativeColumn = this.DecorativeColumns.First(anotherDecorativeColumn => anotherDecorativeColumn.UbicationPoint.Equals(ubicationPoint)); DECORATIVECOLUMN_HANDLER.Remove(this, decorativeColumn); } }
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); } }
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); }