public override void insertElementRow(ElementVezbe e) { vezbaTabela = null; if (!batchUpdate) { updateGrid(); } }
private void createTabela() { Graphics g = panelTabela.CreateGraphics(); vezbaTabela = new VezbaTabela(Point.Empty, panelTabela.Width, g, VezbaTabela.NUM_EMPTY_ROWS, Vezba); g.Dispose(); }
protected override void drawCellContent(Graphics g, RectangleF rectDest, DataGridViewCellStyle cellStyle) { Font fontIzvedba = new Font(cellStyle.Font, FontStyle.Bold); VezbaTabela.drawIzvedbaCaptionCellContent(g, fontIzvedba, cellStyle.Font, editorForm.Vezba.Pravilo, rectDest, new SolidBrush(cellStyle.ForeColor)); }
public override void drawContent(Graphics g, int pageNum) { DataGridView gridElementi = (vezbaEditor as VezbaEditorForm).getGridElementi(); int redBrojWidth = gridElementi.Columns["RedBroj"].Width; int nazivElementaWidth = gridElementi.Columns["NazivElementa"].Width; int tezinaWidth = gridElementi.Columns["Tezina"].Width; int grupaBrojWidth = gridElementi.Columns["GrupaBroj"].Width; int vrednostWidth = gridElementi.Columns["Vrednost"].Width; int vezaSaPrethodnimWidth = gridElementi.Columns["VezaSaPrethodnim"].Width; int zahtevWidth = gridElementi.Columns["Zahtev"].Width; int odbitakWidth = gridElementi.Columns["Odbitak"].Width; int penalizacijaWidth = gridElementi.Columns["Penalizacija"].Width; tabela = new VezbaTabela(contentBounds.Location, contentBounds.Width, redBrojWidth, nazivElementaWidth, tezinaWidth, grupaBrojWidth, vrednostWidth, vezaSaPrethodnimWidth, zahtevWidth, odbitakWidth, penalizacijaWidth, g, vezbaEditor.NumEmptyRows, vezbaEditor.Vezba); tabela.draw(g); }
public override void insertElementRow(ElementVezbe e) { vezbaTabela = null; if (!batchUpdate) updateGrid(); }