add an option for Ping tests (disabled by default) and improve the readability of the code

This commit is contained in:
icylogic
2016-01-20 23:51:51 +08:00
parent 586caab7c4
commit bec1f808b3
5 changed files with 140 additions and 224 deletions
@@ -15,7 +15,7 @@ namespace Shadowsocks.View
{
private readonly ShadowsocksController _controller;
private StatisticsStrategyConfiguration _configuration;
private DataTable _dataTable = new DataTable();
private readonly DataTable _dataTable = new DataTable();
private List<string> _servers;
public StatisticsStrategyConfigurationForm(ShadowsocksController controller)
@@ -135,5 +135,10 @@ namespace Shadowsocks.View
{
loadChartData();
}
private void PingCheckBox_CheckedChanged(object sender, EventArgs e)
{
repeatTimesNum.ReadOnly = !PingCheckBox.Checked;
}
}
}