Commit 9e26bb06 LN

bug修改

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