优化当启动治具数量只有一个时,自动把测试方法修改为A模式随机测试

master
lhiven 11 months ago
parent cc77957867
commit 5fc5385207

@ -287,6 +287,10 @@ namespace Rs.MotionPlat
};
}
public void ReloadParameters()
{
BindParameter();
}
void BindParameter()
{

@ -136,9 +136,10 @@ namespace Rs.MotionPlat
ClearSelectBtn();
button.Selected = true;
CloseSubWindow();
BaseForm form = ActiveForms.Get("FormMain");
FormMain form = (FormMain)ActiveForms.Get("FormMain");
if(form!=null)
{
form.ReloadParameters();
panel_main.Controls.Add(form);
form.TopLevel = false;
form.Dock = DockStyle.Fill;

@ -212,9 +212,39 @@ namespace Rs.MotionPlat.SysConfig
private void cboxFixture_CheckedChanged(object sender, EventArgs e)
{
int num = 0;
CheckBox cbox = (CheckBox)sender;
SysConfigParam.Update(cbox.Name.Replace("cbox", ""), cbox.Checked.ToString());
TestFixtureManager.Instance.GetTestFixture(int.Parse(cbox.Text.Replace("TC", "").ToString())).Enable = cbox.Checked;
if(cboxEnableTC1.Checked)
{
num++;
}
if (cboxEnableTC2.Checked)
{
num++;
}
if (cboxEnableTC3.Checked)
{
num++;
}
if (cboxEnableTC4.Checked)
{
num++;
}
if (cboxEnableTC5.Checked)
{
num++;
}
if (cboxEnableTC6.Checked)
{
num++;
}
if(num==1)
{
SysConfigParam.Update("TestMethod", "A");
SysConfigParam.Init();
}
}

Loading…
Cancel
Save