private void ContinueButton_Click(object sender, EventArgs e) { try { p.maxStepsT = Int32.Parse(maxStep_TextBox.Text); } catch (FormatException) { return; } task.MaxStepsT = p.maxStepsT; task.ContinueSolving(); double maxV1 = 0, maxV2 = 0; for (int j = 0; j <= p.maxStepsT; j++) { for (int i = 0; i <= p.n; i++) { if (maxV1 < task.V1[i, j]) { maxV1 = task.V1[i, j]; } if (maxV2 < task.V2[i, j]) { maxV2 = task.V2[i, j]; } } } PlotActiv.ChartAreas[0].AxisY.Maximum = maxV1 + 0.1; PlotIngib.ChartAreas[0].AxisY.Maximum = maxV2 + 0.1; PlotIngib.Series[0].Points.Clear(); PlotActiv.Series[0].Points.Clear(); for (int i = 0; i <= p.n; i++) { PlotActiv.Series[0].Points.AddXY((double)i / ((double)p.n), task.V1[i, p.maxStepsT]); } for (int i = 0; i <= p.n; i++) { PlotIngib.Series[0].Points.AddXY((double)i / ((double)p.n), task.V2[i, p.maxStepsT]); } currLayerOnPlotNum = p.maxStepsT; CurrNumLayerTextBox.Text = currLayerOnPlotNum.ToString(); InAllComputedLabel.Text = "Всего подсчитано: " + task.InAllComputedLayers.ToString(); MaxLayerNumLabel.Text = "из " + p.maxStepsT.ToString(); }