Ejemplo n.º 1
0
 public SliceCellStyling(SliceVisualizerTable table, SliceColumnStyling styling, IFontAndColorProvider fontAndColor, SliceVisualizerContext context)
 {
     _table                = table;
     _fontAndColor         = fontAndColor;
     _columnStyling        = styling;
     _appearance           = context.Options.VisualizerAppearance;
     _stylingOptions       = context.Options.VisualizerColumnStyling;
     _tableBackgroundBrush = new SolidBrush(_table.BackgroundColor);
 }
Ejemplo n.º 2
0
        public static void ApplyCellStylingOnCellPainting(SliceVisualizerTable table, SliceColumnStyling styling, IFontAndColorProvider fontAndColor, SliceVisualizerContext context)
        {
            var cellStyling = new SliceCellStyling(table, styling, fontAndColor, context);

            table.CellPainting += cellStyling.HandleCellPaint;
        }