private void AddNewHTMLElement(int bitmapColumnIndex, CSSClass cssClass) { _spans.Add(new HTMLSpan { CSSClass = cssClass, Clear = (bitmapColumnIndex == 0), Width = PixelSize }); }
private bool CurrentPixelColorEqualsPreviousPixelColor(int bitmapColumnIndex, CSSClass cssClass) { return (bitmapColumnIndex > 0) && object.ReferenceEquals(cssClass, _spans.Last().CSSClass); }
private void WriteClass(CSSClass cssClass) { HTML += cssClass.ToString(); }
private CSSClass CreateNewCSSClass(string color, CSSClass cssClass) { cssClass = new CSSClass { Name = string.Format("s{0}", _counterForBuildingCSSClasses), BackgroundColor = color }; _counterForBuildingCSSClasses++; _classes.Add(cssClass); return cssClass; }