public void Paint()
        {
            _painter.InteriorColor = IsDisabled ? SpartaColors.DisabledControlInterior : SpartaColors.DefaultControlInterior;
            _painter.FontColor     = IsDisabled ? SpartaColors.DisabledControlFont : SpartaColors.ValueWithPopup;

            _painter.Paint(Anchor);
        }
Exemple #2
0
        public void Paint()
        {
            _headerRange = Anchor.Resize[1, ColumnCount];
            _bodyRange   = Anchor.Offset[1].Resize[BodyRowCount, ColumnCount];

            _headerPainter.Paint(_headerRange);
            _bodyPainter.Paint(_bodyRange);

            for (var c = 0; c < ColumnCount; c++)
            {
                _columns[c].Header.Anchor = Anchor.Offset[0, c];
                _columns[c].Header.Paint();
            }

            for (var c = 0; c < ColumnCount; c++)
            {
                for (var r = 0; r < BodyRowCount; r++)
                {
                    var property = _columns[c].GetCell(_rows[r]);

                    if (property == null)
                    {
                        continue;
                    }

                    var cell = property.Control;
                    cell.Anchor = Anchor.Offset[r + 1, c];
                    cell.Paint();
                }
            }
        }
Exemple #3
0
        public void Paint()
        {
            _headerRange = Anchor.Resize[1, ColumnCount];
            _bodyRange   = Anchor.Offset[1].Resize[BodyRowCount, ColumnCount];

            _headerPainter.Paint(_headerRange);
            _bodyPainter.Paint(_bodyRange);

            for (var c = 0; c < ColumnCount; c++)
            {
                _columns[c].Header.Anchor = Anchor.Offset[0, c];
                _columns[c].Header.Paint();
            }

            for (var c = 0; c < ColumnCount; c++)
            {
                for (var r = 0; r < BodyRowCount; r++)
                {
                    var cell = _columns[c].GetCell(r);
                    cell.Anchor = Anchor.Offset[r + 1, c];
                    cell.Paint();
                }
            }
        }
Exemple #4
0
 public void Paint()
 {
     _headerPainter.Paint(HeaderRange);
     new[] { _header, _body }.Paint();
 }
Exemple #5
0
 public void Paint()
 {
     Painter.Paint(Range);
 }
 public void Paint()
 {
     _painter.Paint(Anchor);
 }