Commit 9e26bb06 LN

bug修改

1 个父辈 ff9fa881
正在显示 1 个修改的文件 包含 13 行增加10 行删除
......@@ -74,12 +74,7 @@ namespace TSA_V
txtBoardName.Focus();
return false ;
}
if (cmbBomList.SelectedIndex < 0)
{
//MessageBox.Show(ResourceCulture.GetString(ResourceCulture.ChoiceLibrary, "请选择元器件库!"));
txtBoardName.Focus();
return false ;
}
board.boardCode = FormUtil.getValue(txtCode);
board.imgName = FormUtil.getValue(txtImagePath);
if (board.imgName.Equals(""))
......@@ -106,9 +101,11 @@ namespace TSA_V
board.LineWidth = FormUtil.GetIntValue(txtLineWidth);
if (board.LineWidth <= 0)
{
MessageBox.Show(ResourceCulture.GetString(ResourceCulture.WriteLineWidth, "请输入线体宽度!"));
this.txtLineWidth.Focus();
return false;
board.LineWidth = board.boardWidth;
txtLineWidth.Text = board.LineWidth.ToString();
//MessageBox.Show(ResourceCulture.GetString(ResourceCulture.WriteLineWidth, "请输入线体宽度!"));
//this.txtLineWidth.Focus();
//return false;
}
if (!TSAVBean.IsValidPosition(board.originX, board.originY))
{
......@@ -117,7 +114,13 @@ namespace TSA_V
return false ;
}
if (rdbSelCom.Checked)
{
{
if (cmbBomList.SelectedIndex < 0)
{
MessageBox.Show(ResourceCulture.GetString(ResourceCulture.ChoiceLibrary, "请选择元器件库!"));
txtBoardName.Focus();
return false;
}
board.bomName = cmbBomList.Text;
}
else
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!