public Controller(STTableau Tab, List <BasElem> Elems) { Init(); AddChar('e'); AddTableau(Tab); AddChar('='); for (int i = 0; i < Elems.Count; i++) { if (i != 0) { AddChar('+'); } AddCoeff(Elems[i].Coeff); AddTableau(Elems[i].Sigma); AddChar('x'); AddTableau(Elems[i].Tau); } BaseCellRealRowNumber = CurrentR + CurrentDH; }
private void AddTableau(STTableau tab) { if (CurrentC + tab.Width < BaseCellControllerColNumber) { Cells.SetViewItemAtXY(new Tableau(this, CurrentR, CurrentC, tab)); CurrentC += tab.Width; if (tab.Height > CurrentDH) { CurrentDH = tab.Height + 2; } } else { CurrentR += CurrentDH; CurrentC = StartC + ParagraphDW; Cells.SetViewItemAtXY(new Tableau(this, CurrentR, CurrentC, tab)); CurrentC += tab.Width; CurrentDH = tab.Height + 2; } }
private void AddTableau(int row, int col, STTableau tab) { Cells.SetViewItemAtXY(new Tableau(this, row, col, tab)); }