public Form1() { InitializeComponent(); InitMatrix(p); gz = new Gauss_Zeidel(this, matrix, b); gj = new Gauss_Djordano(this, matrix, b); }
void Next_Click(object sender, EventArgs e) { if (p < 2) { InitMatrix(p); } else { p = 0; InitMatrix(0); } gz = new Gauss_Zeidel(this, matrix, b); gj = new Gauss_Djordano(this, matrix, b); label1.Text = "n: " + p.ToString(); p++; }