public BarPart(int percentage, HtmlAttributes commonAttributes) { HtmlAttributes = commonAttributes.Clone(); HtmlTag = "div"; HtmlAttributes["class"] = "bar"; HtmlAttributes["style"] = "width:" + percentage + "%"; }