Commit 4d98d7fa 几米阳光

1

1 个父辈 78428e22
......@@ -131,7 +131,7 @@ namespace CodeLibrary
private void btnbarCode_Click(object sender, EventArgs e)
{
if (pictureBox1.Image == null || txtPath.Text.Equals(""))
if (pictureBox1.Image == null )
{
MessageBox.Show("请先选择图片", "提示", MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
......@@ -186,8 +186,15 @@ namespace CodeLibrary
{
codeParamPath = "";
}
List<CodeInfo> codeList = HDCodeHelper.DecodeCode(ho_image, count, codeParamPath,cmbCodeType.Text);
List<CodeInfo> codeList = new List<CodeInfo>();
if (cmbCodeType.Text.ToLower().Equals("barcode"))
{
codeList = HDCodeHelper.DecodeBarCode(ho_image);
}
else
{
codeList = HDCodeHelper.DecodeCode(ho_image, count, codeParamPath, cmbCodeType.Text);
}
ShowCode(codeList);
txtResult.Text += "\r\n扫码结束耗时:" + stopwatch.Elapsed.ToString();
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!