public void func_cell_draw(int col, int row, double x, double y, double width, double height, TGraphics gr) { int display_type; if (_typeget.get_value(col, row, out display_type)) { IDrawCell <TGraphics> dec = _types[display_type]; dec.func_cell_draw(col, row, x, y, width, height, gr); } }
public void func_draw(double xoff, double yoff, CellRange viz, IBoxGetter box, TGraphics gr) { _cd.func_begin_update(viz); for (int row = viz.row_first; row <= viz.row_last; row++) { for (int col = viz.col_first; col <= viz.col_last; col++) { double cx; double cy; double cwidth; double cheight; box.GetBox(col, row, out cx, out cy, out cwidth, out cheight ); _cd.func_cell_draw(col, row, xoff + cx, yoff + cy, cwidth, cheight, gr); } } _cd.func_end_update(); }