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

            _counterForBuildingCSSClasses++;
            _classes.Add(cssClass);
            return cssClass;
        }