Ejemplo n.º 1
0
 public PictureBoxCellRenderer(GridControlBase grid, GridCellModelBase cellModel)
     : base(grid, cellModel)
 {
     cm = (PictureBoxCellModel)cellModel;
     SupportsFocusControl = false;
     FixControlParent(drawPictureBox);
 }
Ejemplo n.º 2
0
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                drawPictureBox.Dispose();
                drawPictureBox = null;
                cm             = null;
            }

            base.Dispose(disposing);
        }
Ejemplo n.º 3
0
 protected override void OnDraw(Graphics g, Rectangle clientRectangle, int rowIndex, int colIndex, GridStyleInfo style)
 {
     style.Control = drawPictureBox;
     PictureBoxCellModel.InitializePictureBox(drawPictureBox, style);
     base.OnDraw(g, clientRectangle, rowIndex, colIndex, style);
 }