internal void test4(int w, int k) { //TEST 4: 2x5 z wierszem nagłówkowym htmlTable tab4 = new htmlTable(); tab4.tableStart(); for (int i = 0; i < w; i++) { if (i == 0) { tab4.headStart(); } else { tab4.rowStart(); } for (int j = 0; j < k; j++) { int temp = (i + 1) * (j + 1); string s = "tekst " + temp.ToString(); if (i == 0) { tab4.addHeadContent(s); } else { tab4.addContent(s); } } if (i == 0) { tab4.headEnd(); } else { tab4.rowEnd(); } } tab4.tableEnd(); Console.WriteLine(tab4.content); Console.WriteLine("-------------------------\n"); File.WriteAllText("wynik4.html", tab4.content); }