25103101 加了连续测试及次数,验证ok。
This commit is contained in:
@@ -94,6 +94,11 @@ namespace SLC1_N
|
||||
chk_ch2saoma.Checked = config.GetValue<bool>("chk_ch2saoma", true);
|
||||
chk_ch3saoma.Checked = config.GetValue<bool>("chk_ch3saoma", true);
|
||||
chk_ch4saoma.Checked = config.GetValue<bool>("chk_ch4saoma", true);
|
||||
|
||||
// 连续测试/次数
|
||||
chk_ContinueTest.Checked = config.GetValue<bool>("chk_ContinueTest", true);
|
||||
tb_ContinueTestCount.Enabled = chk_ContinueTest.Checked;
|
||||
tb_ContinueTestCount.Text = config.GetValue<int>("tb_ContinueTestCount", 1).ToString();
|
||||
}
|
||||
|
||||
//上传参数
|
||||
@@ -596,6 +601,27 @@ namespace SLC1_N
|
||||
}
|
||||
}
|
||||
|
||||
// 是否连续测试
|
||||
private void chk_ContinueTest_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
Form1.f1.m_ContinueTest = chk_ContinueTest.Checked;
|
||||
|
||||
tb_ContinueTestCount.Enabled = chk_ContinueTest.Checked;
|
||||
|
||||
var config = new JsonConfig("config.json");
|
||||
config.SetValue("chk_ContinueTest", chk_ContinueTest.Checked);
|
||||
}
|
||||
|
||||
// 连续次数
|
||||
private void tb_ContinueTestCount_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (string.IsNullOrEmpty(tb_ContinueTestCount.Text))
|
||||
return;
|
||||
|
||||
Form1.f1.m_ContinueTestCount = Convert.ToInt32(tb_ContinueTestCount.Text);
|
||||
|
||||
var config = new JsonConfig("config.json");
|
||||
config.SetValue("tb_ContinueTestCount", Convert.ToInt32(tb_ContinueTestCount.Text));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user