private void CLEAR_1_Click(object sender, EventArgs e) { if (backgroundWorker1.IsBusy) { backgroundWorker1.CancelAsync(); } TABLE_1.Rows.Clear(); TABLE_2.Rows.Clear(); CLEAR_STAT_Click(sender, e); if (CHART_1.Series.Count > 1) { int i = 1; while (CHART_1.Series.Count > 1) { CHART_1.Series.RemoveAt(i); } } if (CHART_2.Series.Count > 1) { int i = 1; while (CHART_2.Series.Count > 1) { CHART_2.Series.RemoveAt(i); } } if (CHART_3.Series.Count > 1) { int i = 1; while (CHART_3.Series.Count > 1) { CHART_3.Series.RemoveAt(i); } } if (CHART_4.Series.Count > 1) { int i = 1; while (CHART_4.Series.Count > 1) { CHART_4.Series.RemoveAt(i); } } CLEAR_1.Enabled = false; GET_P_TABLE.Enabled = false; FILTER_TABLE_1.Enabled = false; SHOW_VALUE.Enabled = false; SHOW_VALUE.Checked = false; COMPARSION.Enabled = false; COMPARSION.Checked = false; TIME_ELAPSED.Visible = false; exper.finalize(); }
public P_FORM(SV _exper) { InitializeComponent(); exper = new SV(_exper); for (int i = 0; i < exper.count; i++) { P_TABLE.Columns.Add("SV" + (i + 1), "С.В. " + (i + 1)); } int max = exper.FindMaxNu(); for (int i = 0; i <= max; i++) { P_TABLE.Rows.Add(); } for (int i = 0; i < exper.count; i++) { P_TABLE.Rows[0].Cells["SV" + (i + 1)].Value = exper.array_yi[i].Nu; } for (int i = 0; i < exper.count; i++) { // for (int j = 0; j < exper.array_yi[i].p.Count(); j++) // { // P_TABLE.Rows[j + 1].Cells[i].Value = exper.array_yi[i].p[j].ToString(); // } } exper.finalize(); }