public ListViewDecorator(ListView listView, ITheme theme) { _listView = listView; _theme = theme; _headerPainter = new ListViewHeaderPainter(_listView); _headerPainter.Paint += HandleHeaderPaint; _groupsPainter = new ListViewGroupsPainter(_listView); _groupsPainter.Paint += HandleGroupsPaint; _listView.Controls.Add(this); }
public ListViewDecorator(ListView listView, ITheme theme) { _listView = listView; _theme = theme; if (!MonoWorkarounds.IsRequired()) { _headerPainter = new ListViewHeaderPainter(_listView); _headerPainter.Paint += HandleHeaderPaint; _groupsPainter = new ListViewGroupsPainter(_listView); _groupsPainter.Paint += HandleGroupsPaint; } _listView.Controls.Add(this); }