private void FormHisP_VisibleChanged(object sender, EventArgs e) { if (Visible == true) { chart1.Series.Clear(); CModeTournamentP.playerList.SortElo(); foreach (CPlayer player in CModeTournamentP.playerList.list) { string pn = player.name; chart1.Series.Add(pn); chart1.Series[pn].ChartType = SeriesChartType.Line; chart1.Series[pn].BorderWidth = 2; CData.HisToPoints(player.hisElo, chart1.Series[pn].Points); } } }
private void FormHisE_VisibleChanged(object sender, EventArgs e) { if (Visible == true) { chart1.Series.Clear(); CModeTournamentE.engineList.SortElo(); foreach (CEngine engine in CModeTournamentE.engineList.list) { string en = engine.name; chart1.Series.Add(en); chart1.Series[en].ChartType = SeriesChartType.Line; chart1.Series[en].BorderWidth = 2; CData.HisToPoints(engine.hisElo, chart1.Series[en].Points); } } }
private void FormHisB_VisibleChanged(object sender, EventArgs e) { if (Visible == true) { chart1.Series.Clear(); CModeTournamentB.bookList.SortElo(); foreach (CBook book in CModeTournamentB.bookList.list) { string bn = book.name; chart1.Series.Add(bn); chart1.Series[bn].ChartType = SeriesChartType.Line; chart1.Series[bn].BorderWidth = 2; CData.HisToPoints(book.hisElo, chart1.Series[bn].Points); } } }