public virtual void Draw(GraphicsHandler graphicsHandler) { graphicsHandler.DrawFilledRectangle(X.Round(), Y.Round(), GetScaledWidth(), GetScaledHeight(), Color); if (BorderColor != null && !BorderColor.Equals(Color)) { graphicsHandler.DrawRectangle(X.Round(), Y.Round(), GetScaledWidth(), GetScaledHeight(), BorderColor, BorderThickness); } }