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

            base.Dispose(disposing);
        }
Esempio 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);
 }