Commit aeedd0c5 刘韬

修正1024x768下界面显示

1 个父辈 0405e96a
......@@ -29,41 +29,37 @@ namespace BLL
public static string StartTest(string imgPath)
{
string ocr = "";
if (!AppIsRun())
for (int i = 0; i < 2; i++)
{
try
if (!AppIsRun())
{
var paddle = "paddleOCR.exe";
Process process = new Process();
process.StartInfo = new ProcessStartInfo();
process.StartInfo.FileName = paddle;
process.StartInfo.WorkingDirectory =Application.StartupPath+"\\paddle";
process.Start();
LogNet.log.Info("ocr程序未允许,启动");
try
{
var paddle = "paddleOCR.exe";
Process process = new Process();
process.StartInfo = new ProcessStartInfo();
process.StartInfo.FileName = paddle;
process.StartInfo.WorkingDirectory = Application.StartupPath + "\\paddle";
process.Start();
}
catch (Exception ex)
{
LogNet.log.Error("打开paddleOCR失败", ex);
}
Thread.Sleep(5000);
}
catch (Exception ex)
if (AppIsRun())
{
LogNet.log.Error("打开paddleOCR失败", ex);
}
Thread.Sleep(3000);
}
if(AppIsRun())
{
ocr = StartCplusOcr(imgPath);
}
if (!AppIsRun())
{
try
{
var paddle = "paddleOCR.exe";
Process process = new Process();
process.StartInfo = new ProcessStartInfo();
process.StartInfo.FileName = paddle;
process.StartInfo.WorkingDirectory = Application.StartupPath + "\\paddle";
process.Start();
}
catch (Exception ex)
{
LogNet.log.Error("打开paddleOCR失败", ex);
try
{
ocr = StartCplusOcr(imgPath);
break;
}
catch (Exception ex) {
LogNet.log.Error("OCR失败", ex);
AppKill();
}
}
}
return ocr;
......@@ -100,6 +96,15 @@ namespace BLL
LogNet.log.Info("paddleOCR 未在运行,启动程序");
return false;
}
static void AppKill()
{
Process[] processes = Process.GetProcessesByName("paddleOCR");
foreach(var p in processes)
{
p.Kill();
}
LogNet.log.Info("paddleOCR AppKill");
}
public class Result
{
/// <summary>
......
......@@ -71,7 +71,7 @@ namespace SmartScan
this.BtnOK.BorderWidth = 2;
this.BtnOK.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230)))));
this.BtnOK.HoldPress = false;
this.BtnOK.Location = new System.Drawing.Point(1184, 689);
this.BtnOK.Location = new System.Drawing.Point(767, 689);
this.BtnOK.Name = "BtnOK";
this.BtnOK.Padding = new System.Windows.Forms.Padding(3);
this.BtnOK.Size = new System.Drawing.Size(120, 40);
......@@ -87,7 +87,7 @@ namespace SmartScan
this.BtnCancel.BorderWidth = 2;
this.BtnCancel.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230)))));
this.BtnCancel.HoldPress = false;
this.BtnCancel.Location = new System.Drawing.Point(1310, 689);
this.BtnCancel.Location = new System.Drawing.Point(893, 689);
this.BtnCancel.Name = "BtnCancel";
this.BtnCancel.Padding = new System.Windows.Forms.Padding(3);
this.BtnCancel.Size = new System.Drawing.Size(120, 40);
......@@ -106,7 +106,7 @@ namespace SmartScan
this.PnlTemp.Name = "PnlTemp";
this.PnlTemp.Padding = new System.Windows.Forms.Padding(3);
this.PnlTemp.ShowText = false;
this.PnlTemp.Size = new System.Drawing.Size(698, 427);
this.PnlTemp.Size = new System.Drawing.Size(489, 427);
this.PnlTemp.TabIndex = 28;
this.PnlTemp.Text = "facePanel1";
this.PnlTemp.TitleFont = new System.Drawing.Font("宋体", 12F);
......@@ -115,9 +115,9 @@ namespace SmartScan
// flowLayoutPanel1
//
this.flowLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.flowLayoutPanel1.Location = new System.Drawing.Point(3, 6);
this.flowLayoutPanel1.Location = new System.Drawing.Point(3, 29);
this.flowLayoutPanel1.Name = "flowLayoutPanel1";
this.flowLayoutPanel1.Size = new System.Drawing.Size(692, 170);
this.flowLayoutPanel1.Size = new System.Drawing.Size(483, 147);
this.flowLayoutPanel1.TabIndex = 29;
//
// pnlMatch
......@@ -131,7 +131,7 @@ namespace SmartScan
this.pnlMatch.Location = new System.Drawing.Point(3, 344);
this.pnlMatch.Name = "pnlMatch";
this.pnlMatch.Padding = new System.Windows.Forms.Padding(3);
this.pnlMatch.Size = new System.Drawing.Size(697, 271);
this.pnlMatch.Size = new System.Drawing.Size(489, 271);
this.pnlMatch.TabIndex = 30;
this.pnlMatch.Text = "匹配";
this.pnlMatch.TextImageRelation = System.Windows.Forms.TextImageRelation.TextAboveImage;
......@@ -167,7 +167,7 @@ namespace SmartScan
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 56F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 56F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 56F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(691, 232);
this.tableLayoutPanel1.Size = new System.Drawing.Size(483, 232);
this.tableLayoutPanel1.TabIndex = 0;
//
// NudMiddleTextCount
......@@ -185,7 +185,7 @@ namespace SmartScan
this.NudMiddleTextCount.Minimum = 1F;
this.NudMiddleTextCount.Name = "NudMiddleTextCount";
this.NudMiddleTextCount.Padding = new System.Windows.Forms.Padding(4);
this.NudMiddleTextCount.Size = new System.Drawing.Size(164, 56);
this.NudMiddleTextCount.Size = new System.Drawing.Size(112, 56);
this.NudMiddleTextCount.TabIndex = 62;
this.NudMiddleTextCount.Text = "1";
this.NudMiddleTextCount.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
......@@ -203,7 +203,7 @@ namespace SmartScan
this.ChkCheckCodeType.Margin = new System.Windows.Forms.Padding(4);
this.ChkCheckCodeType.Name = "ChkCheckCodeType";
this.ChkCheckCodeType.Padding = new System.Windows.Forms.Padding(4);
this.ChkCheckCodeType.Size = new System.Drawing.Size(164, 48);
this.ChkCheckCodeType.Size = new System.Drawing.Size(112, 48);
this.ChkCheckCodeType.TabIndex = 52;
this.ChkCheckCodeType.Text = "CheckCodeType";
this.ChkCheckCodeType.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
......@@ -217,11 +217,11 @@ namespace SmartScan
this.tableLayoutPanel1.SetColumnSpan(this.LblCodeType, 2);
this.LblCodeType.Dock = System.Windows.Forms.DockStyle.Fill;
this.LblCodeType.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230)))));
this.LblCodeType.Location = new System.Drawing.Point(176, 4);
this.LblCodeType.Location = new System.Drawing.Point(124, 4);
this.LblCodeType.Margin = new System.Windows.Forms.Padding(4);
this.LblCodeType.Name = "LblCodeType";
this.LblCodeType.Padding = new System.Windows.Forms.Padding(4);
this.LblCodeType.Size = new System.Drawing.Size(336, 48);
this.LblCodeType.Size = new System.Drawing.Size(232, 48);
this.LblCodeType.TabIndex = 53;
this.LblCodeType.Text = "-";
this.LblCodeType.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
......@@ -237,7 +237,7 @@ namespace SmartScan
this.ChkMatchingStart.Margin = new System.Windows.Forms.Padding(4);
this.ChkMatchingStart.Name = "ChkMatchingStart";
this.ChkMatchingStart.Padding = new System.Windows.Forms.Padding(4);
this.ChkMatchingStart.Size = new System.Drawing.Size(164, 48);
this.ChkMatchingStart.Size = new System.Drawing.Size(112, 48);
this.ChkMatchingStart.TabIndex = 54;
this.ChkMatchingStart.Text = "Start";
this.ChkMatchingStart.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
......@@ -249,7 +249,7 @@ namespace SmartScan
this.TxtMatchingStartText.BorderStyle = Asa.FaceControl.ControlShape.Rectangle;
this.TxtMatchingStartText.BorderWidth = 2;
this.TxtMatchingStartText.Dock = System.Windows.Forms.DockStyle.Fill;
this.TxtMatchingStartText.Location = new System.Drawing.Point(176, 60);
this.TxtMatchingStartText.Location = new System.Drawing.Point(124, 60);
this.TxtMatchingStartText.Margin = new System.Windows.Forms.Padding(4);
this.TxtMatchingStartText.MaxLength = 32767;
this.TxtMatchingStartText.Name = "TxtMatchingStartText";
......@@ -259,7 +259,7 @@ namespace SmartScan
this.TxtMatchingStartText.SelectionStart = 0;
this.TxtMatchingStartText.ShowDel = true;
this.TxtMatchingStartText.ShowQuery = false;
this.TxtMatchingStartText.Size = new System.Drawing.Size(164, 48);
this.TxtMatchingStartText.Size = new System.Drawing.Size(112, 48);
this.TxtMatchingStartText.TabIndex = 55;
this.TxtMatchingStartText.Text = "faceTextBox1";
this.TxtMatchingStartText.TextChanged += new System.EventHandler(this.matchChanged);
......@@ -271,11 +271,11 @@ namespace SmartScan
this.ChkMatchingEnd.BorderWidth = 0;
this.ChkMatchingEnd.Dock = System.Windows.Forms.DockStyle.Fill;
this.ChkMatchingEnd.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230)))));
this.ChkMatchingEnd.Location = new System.Drawing.Point(348, 60);
this.ChkMatchingEnd.Location = new System.Drawing.Point(244, 60);
this.ChkMatchingEnd.Margin = new System.Windows.Forms.Padding(4);
this.ChkMatchingEnd.Name = "ChkMatchingEnd";
this.ChkMatchingEnd.Padding = new System.Windows.Forms.Padding(4);
this.ChkMatchingEnd.Size = new System.Drawing.Size(164, 48);
this.ChkMatchingEnd.Size = new System.Drawing.Size(112, 48);
this.ChkMatchingEnd.TabIndex = 56;
this.ChkMatchingEnd.Text = "End";
this.ChkMatchingEnd.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
......@@ -287,7 +287,7 @@ namespace SmartScan
this.TxtMatchingEndText.BorderStyle = Asa.FaceControl.ControlShape.Rectangle;
this.TxtMatchingEndText.BorderWidth = 2;
this.TxtMatchingEndText.Dock = System.Windows.Forms.DockStyle.Fill;
this.TxtMatchingEndText.Location = new System.Drawing.Point(520, 60);
this.TxtMatchingEndText.Location = new System.Drawing.Point(364, 60);
this.TxtMatchingEndText.Margin = new System.Windows.Forms.Padding(4);
this.TxtMatchingEndText.MaxLength = 32767;
this.TxtMatchingEndText.Name = "TxtMatchingEndText";
......@@ -297,7 +297,7 @@ namespace SmartScan
this.TxtMatchingEndText.SelectionStart = 0;
this.TxtMatchingEndText.ShowDel = true;
this.TxtMatchingEndText.ShowQuery = false;
this.TxtMatchingEndText.Size = new System.Drawing.Size(167, 48);
this.TxtMatchingEndText.Size = new System.Drawing.Size(115, 48);
this.TxtMatchingEndText.TabIndex = 57;
this.TxtMatchingEndText.Text = "faceTextBox2";
this.TxtMatchingEndText.TextChanged += new System.EventHandler(this.matchChanged);
......@@ -313,7 +313,7 @@ namespace SmartScan
this.ChkMatchingMiddle.Margin = new System.Windows.Forms.Padding(4);
this.ChkMatchingMiddle.Name = "ChkMatchingMiddle";
this.ChkMatchingMiddle.Padding = new System.Windows.Forms.Padding(4);
this.ChkMatchingMiddle.Size = new System.Drawing.Size(164, 48);
this.ChkMatchingMiddle.Size = new System.Drawing.Size(112, 48);
this.ChkMatchingMiddle.TabIndex = 58;
this.ChkMatchingMiddle.Text = "Middle";
this.ChkMatchingMiddle.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
......@@ -325,7 +325,7 @@ namespace SmartScan
this.TxtMatchingMiddleText.BorderStyle = Asa.FaceControl.ControlShape.Rectangle;
this.TxtMatchingMiddleText.BorderWidth = 2;
this.TxtMatchingMiddleText.Dock = System.Windows.Forms.DockStyle.Fill;
this.TxtMatchingMiddleText.Location = new System.Drawing.Point(176, 116);
this.TxtMatchingMiddleText.Location = new System.Drawing.Point(124, 116);
this.TxtMatchingMiddleText.Margin = new System.Windows.Forms.Padding(4);
this.TxtMatchingMiddleText.MaxLength = 32767;
this.TxtMatchingMiddleText.Name = "TxtMatchingMiddleText";
......@@ -335,7 +335,7 @@ namespace SmartScan
this.TxtMatchingMiddleText.SelectionStart = 0;
this.TxtMatchingMiddleText.ShowDel = true;
this.TxtMatchingMiddleText.ShowQuery = false;
this.TxtMatchingMiddleText.Size = new System.Drawing.Size(164, 48);
this.TxtMatchingMiddleText.Size = new System.Drawing.Size(112, 48);
this.TxtMatchingMiddleText.TabIndex = 59;
this.TxtMatchingMiddleText.Text = "faceTextBox3";
this.TxtMatchingMiddleText.TextChanged += new System.EventHandler(this.matchChanged);
......@@ -347,11 +347,11 @@ namespace SmartScan
this.ChkCaseSensitivity.BorderWidth = 0;
this.ChkCaseSensitivity.Dock = System.Windows.Forms.DockStyle.Fill;
this.ChkCaseSensitivity.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230)))));
this.ChkCaseSensitivity.Location = new System.Drawing.Point(348, 116);
this.ChkCaseSensitivity.Location = new System.Drawing.Point(244, 116);
this.ChkCaseSensitivity.Margin = new System.Windows.Forms.Padding(4);
this.ChkCaseSensitivity.Name = "ChkCaseSensitivity";
this.ChkCaseSensitivity.Padding = new System.Windows.Forms.Padding(4);
this.ChkCaseSensitivity.Size = new System.Drawing.Size(164, 48);
this.ChkCaseSensitivity.Size = new System.Drawing.Size(112, 48);
this.ChkCaseSensitivity.TabIndex = 60;
this.ChkCaseSensitivity.Text = "Sensitivity";
this.ChkCaseSensitivity.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
......@@ -364,13 +364,13 @@ namespace SmartScan
this.ChoMatchMiddleType.BorderWidth = 2;
this.ChoMatchMiddleType.Dock = System.Windows.Forms.DockStyle.Fill;
this.ChoMatchMiddleType.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230)))));
this.ChoMatchMiddleType.Location = new System.Drawing.Point(176, 172);
this.ChoMatchMiddleType.Location = new System.Drawing.Point(124, 172);
this.ChoMatchMiddleType.Margin = new System.Windows.Forms.Padding(4);
this.ChoMatchMiddleType.Name = "ChoMatchMiddleType";
this.ChoMatchMiddleType.Padding = new System.Windows.Forms.Padding(4);
this.ChoMatchMiddleType.SelectedIndex = -1;
this.ChoMatchMiddleType.SelectedText = "";
this.ChoMatchMiddleType.Size = new System.Drawing.Size(164, 56);
this.ChoMatchMiddleType.Size = new System.Drawing.Size(112, 56);
this.ChoMatchMiddleType.TabIndex = 61;
this.ChoMatchMiddleType.Text = "faceComboBox1";
this.ChoMatchMiddleType.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
......@@ -384,11 +384,11 @@ namespace SmartScan
this.lblMatchRes.Dock = System.Windows.Forms.DockStyle.Fill;
this.lblMatchRes.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblMatchRes.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230)))));
this.lblMatchRes.Location = new System.Drawing.Point(520, 172);
this.lblMatchRes.Location = new System.Drawing.Point(364, 172);
this.lblMatchRes.Margin = new System.Windows.Forms.Padding(4);
this.lblMatchRes.Name = "lblMatchRes";
this.lblMatchRes.Padding = new System.Windows.Forms.Padding(4);
this.lblMatchRes.Size = new System.Drawing.Size(167, 56);
this.lblMatchRes.Size = new System.Drawing.Size(115, 56);
this.lblMatchRes.TabIndex = 63;
//
// Characteristicbarcode
......@@ -398,11 +398,11 @@ namespace SmartScan
this.Characteristicbarcode.BorderWidth = 0;
this.Characteristicbarcode.Dock = System.Windows.Forms.DockStyle.Fill;
this.Characteristicbarcode.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230)))));
this.Characteristicbarcode.Location = new System.Drawing.Point(520, 116);
this.Characteristicbarcode.Location = new System.Drawing.Point(364, 116);
this.Characteristicbarcode.Margin = new System.Windows.Forms.Padding(4);
this.Characteristicbarcode.Name = "Characteristicbarcode";
this.Characteristicbarcode.Padding = new System.Windows.Forms.Padding(4);
this.Characteristicbarcode.Size = new System.Drawing.Size(167, 48);
this.Characteristicbarcode.Size = new System.Drawing.Size(115, 48);
this.Characteristicbarcode.TabIndex = 64;
this.Characteristicbarcode.Text = "特征码";
this.Characteristicbarcode.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
......@@ -419,7 +419,7 @@ namespace SmartScan
this.pnlRawCode.Location = new System.Drawing.Point(3, 3);
this.pnlRawCode.Name = "pnlRawCode";
this.pnlRawCode.Padding = new System.Windows.Forms.Padding(3);
this.pnlRawCode.Size = new System.Drawing.Size(697, 335);
this.pnlRawCode.Size = new System.Drawing.Size(489, 335);
this.pnlRawCode.TabIndex = 31;
this.pnlRawCode.Text = "原始条码信息";
this.pnlRawCode.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
......@@ -433,7 +433,7 @@ namespace SmartScan
this.richTextBox1.ForeColor = System.Drawing.SystemColors.Menu;
this.richTextBox1.Location = new System.Drawing.Point(3, 3);
this.richTextBox1.Name = "richTextBox1";
this.richTextBox1.Size = new System.Drawing.Size(691, 329);
this.richTextBox1.Size = new System.Drawing.Size(483, 329);
this.richTextBox1.TabIndex = 7;
this.richTextBox1.Text = "weqw";
//
......@@ -448,7 +448,7 @@ namespace SmartScan
this.pnlKeywords.Location = new System.Drawing.Point(3, 3);
this.pnlKeywords.Name = "pnlKeywords";
this.pnlKeywords.Padding = new System.Windows.Forms.Padding(3);
this.pnlKeywords.Size = new System.Drawing.Size(698, 179);
this.pnlKeywords.Size = new System.Drawing.Size(489, 179);
this.pnlKeywords.TabIndex = 32;
this.pnlKeywords.Text = "关键字";
this.pnlKeywords.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
......@@ -468,7 +468,7 @@ namespace SmartScan
this.tableLayoutPanel2.Name = "tableLayoutPanel2";
this.tableLayoutPanel2.RowCount = 1;
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tableLayoutPanel2.Size = new System.Drawing.Size(1419, 624);
this.tableLayoutPanel2.Size = new System.Drawing.Size(1002, 624);
this.tableLayoutPanel2.TabIndex = 33;
//
// tableLayoutPanel3
......@@ -478,12 +478,12 @@ namespace SmartScan
this.tableLayoutPanel3.Controls.Add(this.pnlKeywords, 0, 0);
this.tableLayoutPanel3.Controls.Add(this.PnlTemp, 0, 1);
this.tableLayoutPanel3.Dock = System.Windows.Forms.DockStyle.Fill;
this.tableLayoutPanel3.Location = new System.Drawing.Point(712, 3);
this.tableLayoutPanel3.Location = new System.Drawing.Point(504, 3);
this.tableLayoutPanel3.Name = "tableLayoutPanel3";
this.tableLayoutPanel3.RowCount = 2;
this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 30F));
this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 70F));
this.tableLayoutPanel3.Size = new System.Drawing.Size(704, 618);
this.tableLayoutPanel3.Size = new System.Drawing.Size(495, 618);
this.tableLayoutPanel3.TabIndex = 32;
//
// tableLayoutPanel4
......@@ -498,13 +498,13 @@ namespace SmartScan
this.tableLayoutPanel4.RowCount = 2;
this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 277F));
this.tableLayoutPanel4.Size = new System.Drawing.Size(703, 618);
this.tableLayoutPanel4.Size = new System.Drawing.Size(495, 618);
this.tableLayoutPanel4.TabIndex = 33;
//
// FrmCodeExtract
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.ClientSize = new System.Drawing.Size(1441, 740);
this.ClientSize = new System.Drawing.Size(1024, 740);
this.Controls.Add(this.tableLayoutPanel2);
this.Controls.Add(this.BtnCancel);
this.Controls.Add(this.BtnOK);
......
......@@ -101,7 +101,7 @@ namespace SmartScan
pnl.Visible = false;
//Controls.Add(pnl);
this.tableLayoutPanel3.Controls.Add(pnl, 0, 1);
Maximize();
//Maximize();
clacWindowHeight();
}
......
......@@ -68,11 +68,10 @@ namespace SmartScan
this.facePanel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.facePanel1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230)))));
this.facePanel1.Location = new System.Drawing.Point(0, 0);
this.facePanel1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.facePanel1.Name = "facePanel1";
this.facePanel1.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.facePanel1.Padding = new System.Windows.Forms.Padding(3, 3, 3, 3);
this.facePanel1.ShowText = false;
this.facePanel1.Size = new System.Drawing.Size(784, 648);
this.facePanel1.Size = new System.Drawing.Size(523, 432);
this.facePanel1.TabIndex = 0;
this.facePanel1.Text = "facePanel1";
this.facePanel1.TitleFont = new System.Drawing.Font("宋体", 12F);
......@@ -85,11 +84,10 @@ namespace SmartScan
this.pnlExtractRule.Controls.Add(this.tableLayoutPanel1);
this.pnlExtractRule.Dock = System.Windows.Forms.DockStyle.Fill;
this.pnlExtractRule.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230)))));
this.pnlExtractRule.Location = new System.Drawing.Point(4, 166);
this.pnlExtractRule.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.pnlExtractRule.Location = new System.Drawing.Point(3, 84);
this.pnlExtractRule.Name = "pnlExtractRule";
this.pnlExtractRule.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.pnlExtractRule.Size = new System.Drawing.Size(776, 477);
this.pnlExtractRule.Padding = new System.Windows.Forms.Padding(3, 3, 3, 3);
this.pnlExtractRule.Size = new System.Drawing.Size(517, 345);
this.pnlExtractRule.TabIndex = 46;
this.pnlExtractRule.Text = "提取";
this.pnlExtractRule.TitleFont = new System.Drawing.Font("宋体", 12F);
......@@ -122,17 +120,17 @@ namespace SmartScan
this.tableLayoutPanel1.Controls.Add(this.ChkLengthEnd, 2, 3);
this.tableLayoutPanel1.Controls.Add(this.BtnDel, 3, 5);
this.tableLayoutPanel1.Controls.Add(this.ChkMatchisnumber, 0, 3);
this.tableLayoutPanel1.Location = new System.Drawing.Point(3, 50);
this.tableLayoutPanel1.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.tableLayoutPanel1.Location = new System.Drawing.Point(2, 33);
this.tableLayoutPanel1.Margin = new System.Windows.Forms.Padding(2, 3, 2, 3);
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
this.tableLayoutPanel1.RowCount = 6;
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 67F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 67F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 67F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 67F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 67F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 67F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(767, 409);
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 45F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 45F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 45F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 45F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 45F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 45F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(511, 300);
this.tableLayoutPanel1.TabIndex = 44;
//
// CboKeyword
......@@ -142,13 +140,12 @@ namespace SmartScan
this.CboKeyword.BorderWidth = 2;
this.CboKeyword.Dock = System.Windows.Forms.DockStyle.Fill;
this.CboKeyword.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230)))));
this.CboKeyword.Location = new System.Drawing.Point(577, 5);
this.CboKeyword.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.CboKeyword.Location = new System.Drawing.Point(384, 3);
this.CboKeyword.Name = "CboKeyword";
this.CboKeyword.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.CboKeyword.Padding = new System.Windows.Forms.Padding(3, 3, 3, 3);
this.CboKeyword.SelectedIndex = -1;
this.CboKeyword.SelectedText = "";
this.CboKeyword.Size = new System.Drawing.Size(186, 57);
this.CboKeyword.Size = new System.Drawing.Size(124, 39);
this.CboKeyword.TabIndex = 39;
this.CboKeyword.Text = "faceComboBox1";
this.CboKeyword.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
......@@ -161,11 +158,10 @@ namespace SmartScan
this.ChkMatchingSplit.BorderWidth = 0;
this.ChkMatchingSplit.Dock = System.Windows.Forms.DockStyle.Fill;
this.ChkMatchingSplit.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230)))));
this.ChkMatchingSplit.Location = new System.Drawing.Point(4, 72);
this.ChkMatchingSplit.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.ChkMatchingSplit.Location = new System.Drawing.Point(3, 48);
this.ChkMatchingSplit.Name = "ChkMatchingSplit";
this.ChkMatchingSplit.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.ChkMatchingSplit.Size = new System.Drawing.Size(183, 57);
this.ChkMatchingSplit.Padding = new System.Windows.Forms.Padding(3, 3, 3, 3);
this.ChkMatchingSplit.Size = new System.Drawing.Size(121, 39);
this.ChkMatchingSplit.TabIndex = 44;
this.ChkMatchingSplit.Text = "Split";
this.ChkMatchingSplit.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
......@@ -179,11 +175,10 @@ namespace SmartScan
this.BtnAdd.Dock = System.Windows.Forms.DockStyle.Fill;
this.BtnAdd.ForeColor = System.Drawing.Color.DeepSkyBlue;
this.BtnAdd.HoldPress = false;
this.BtnAdd.Location = new System.Drawing.Point(4, 340);
this.BtnAdd.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.BtnAdd.Location = new System.Drawing.Point(3, 228);
this.BtnAdd.Name = "BtnAdd";
this.BtnAdd.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.BtnAdd.Size = new System.Drawing.Size(183, 64);
this.BtnAdd.Padding = new System.Windows.Forms.Padding(3, 3, 3, 3);
this.BtnAdd.Size = new System.Drawing.Size(121, 69);
this.BtnAdd.TabIndex = 54;
this.BtnAdd.Text = "Add";
this.BtnAdd.Click += new System.EventHandler(this.BtnAdd_Click);
......@@ -197,13 +192,12 @@ namespace SmartScan
this.NudMaxLength.Dock = System.Windows.Forms.DockStyle.Fill;
this.NudMaxLength.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230)))));
this.NudMaxLength.Increment = 1F;
this.NudMaxLength.Location = new System.Drawing.Point(577, 273);
this.NudMaxLength.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.NudMaxLength.Location = new System.Drawing.Point(384, 183);
this.NudMaxLength.Maximum = 9999F;
this.NudMaxLength.Minimum = 0F;
this.NudMaxLength.Name = "NudMaxLength";
this.NudMaxLength.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.NudMaxLength.Size = new System.Drawing.Size(186, 57);
this.NudMaxLength.Padding = new System.Windows.Forms.Padding(3, 3, 3, 3);
this.NudMaxLength.Size = new System.Drawing.Size(124, 39);
this.NudMaxLength.TabIndex = 35;
this.NudMaxLength.Text = "0";
this.NudMaxLength.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
......@@ -217,11 +211,10 @@ namespace SmartScan
this.ChkMaxLength.BorderWidth = 0;
this.ChkMaxLength.Dock = System.Windows.Forms.DockStyle.Fill;
this.ChkMaxLength.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230)))));
this.ChkMaxLength.Location = new System.Drawing.Point(386, 273);
this.ChkMaxLength.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.ChkMaxLength.Location = new System.Drawing.Point(257, 183);
this.ChkMaxLength.Name = "ChkMaxLength";
this.ChkMaxLength.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.ChkMaxLength.Size = new System.Drawing.Size(183, 57);
this.ChkMaxLength.Padding = new System.Windows.Forms.Padding(3, 3, 3, 3);
this.ChkMaxLength.Size = new System.Drawing.Size(121, 39);
this.ChkMaxLength.TabIndex = 30;
this.ChkMaxLength.Text = "Max";
this.ChkMaxLength.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
......@@ -236,13 +229,12 @@ namespace SmartScan
this.NudMinLength.Dock = System.Windows.Forms.DockStyle.Fill;
this.NudMinLength.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230)))));
this.NudMinLength.Increment = 1F;
this.NudMinLength.Location = new System.Drawing.Point(195, 273);
this.NudMinLength.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.NudMinLength.Location = new System.Drawing.Point(130, 183);
this.NudMinLength.Maximum = 9999F;
this.NudMinLength.Minimum = 0F;
this.NudMinLength.Name = "NudMinLength";
this.NudMinLength.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.NudMinLength.Size = new System.Drawing.Size(183, 57);
this.NudMinLength.Padding = new System.Windows.Forms.Padding(3, 3, 3, 3);
this.NudMinLength.Size = new System.Drawing.Size(121, 39);
this.NudMinLength.TabIndex = 34;
this.NudMinLength.Text = "0";
this.NudMinLength.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
......@@ -256,11 +248,10 @@ namespace SmartScan
this.ChkMinLength.BorderWidth = 0;
this.ChkMinLength.Dock = System.Windows.Forms.DockStyle.Fill;
this.ChkMinLength.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230)))));
this.ChkMinLength.Location = new System.Drawing.Point(4, 273);
this.ChkMinLength.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.ChkMinLength.Location = new System.Drawing.Point(3, 183);
this.ChkMinLength.Name = "ChkMinLength";
this.ChkMinLength.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.ChkMinLength.Size = new System.Drawing.Size(183, 57);
this.ChkMinLength.Padding = new System.Windows.Forms.Padding(3, 3, 3, 3);
this.ChkMinLength.Size = new System.Drawing.Size(121, 39);
this.ChkMinLength.TabIndex = 29;
this.ChkMinLength.Text = "Min";
this.ChkMinLength.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
......@@ -275,13 +266,12 @@ namespace SmartScan
this.NudSplitPart.Dock = System.Windows.Forms.DockStyle.Fill;
this.NudSplitPart.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230)))));
this.NudSplitPart.Increment = 1F;
this.NudSplitPart.Location = new System.Drawing.Point(577, 72);
this.NudSplitPart.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.NudSplitPart.Location = new System.Drawing.Point(384, 48);
this.NudSplitPart.Maximum = 9999F;
this.NudSplitPart.Minimum = 1F;
this.NudSplitPart.Name = "NudSplitPart";
this.NudSplitPart.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.NudSplitPart.Size = new System.Drawing.Size(186, 57);
this.NudSplitPart.Padding = new System.Windows.Forms.Padding(3, 3, 3, 3);
this.NudSplitPart.Size = new System.Drawing.Size(124, 39);
this.NudSplitPart.TabIndex = 47;
this.NudSplitPart.Text = "1";
this.NudSplitPart.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
......@@ -297,13 +287,12 @@ namespace SmartScan
this.NudLength.Dock = System.Windows.Forms.DockStyle.Fill;
this.NudLength.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230)))));
this.NudLength.Increment = 1F;
this.NudLength.Location = new System.Drawing.Point(577, 139);
this.NudLength.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.NudLength.Location = new System.Drawing.Point(384, 93);
this.NudLength.Maximum = 9999F;
this.NudLength.Minimum = 1F;
this.NudLength.Name = "NudLength";
this.NudLength.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.NudLength.Size = new System.Drawing.Size(186, 57);
this.NudLength.Padding = new System.Windows.Forms.Padding(3, 3, 3, 3);
this.NudLength.Size = new System.Drawing.Size(124, 39);
this.NudLength.TabIndex = 41;
this.NudLength.Text = "1";
this.NudLength.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
......@@ -317,11 +306,10 @@ namespace SmartScan
this.LblStart.BorderWidth = 0;
this.LblStart.Dock = System.Windows.Forms.DockStyle.Fill;
this.LblStart.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230)))));
this.LblStart.Location = new System.Drawing.Point(4, 139);
this.LblStart.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.LblStart.Location = new System.Drawing.Point(3, 93);
this.LblStart.Name = "LblStart";
this.LblStart.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.LblStart.Size = new System.Drawing.Size(183, 57);
this.LblStart.Padding = new System.Windows.Forms.Padding(3, 3, 3, 3);
this.LblStart.Size = new System.Drawing.Size(121, 39);
this.LblStart.TabIndex = 37;
this.LblStart.Text = "起始";
this.LblStart.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
......@@ -333,11 +321,10 @@ namespace SmartScan
this.LblLength.BorderWidth = 0;
this.LblLength.Dock = System.Windows.Forms.DockStyle.Fill;
this.LblLength.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230)))));
this.LblLength.Location = new System.Drawing.Point(386, 139);
this.LblLength.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.LblLength.Location = new System.Drawing.Point(257, 93);
this.LblLength.Name = "LblLength";
this.LblLength.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.LblLength.Size = new System.Drawing.Size(183, 57);
this.LblLength.Padding = new System.Windows.Forms.Padding(3, 3, 3, 3);
this.LblLength.Size = new System.Drawing.Size(121, 39);
this.LblLength.TabIndex = 38;
this.LblLength.Text = "长度";
this.LblLength.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
......@@ -351,13 +338,12 @@ namespace SmartScan
this.NudStart.Dock = System.Windows.Forms.DockStyle.Fill;
this.NudStart.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230)))));
this.NudStart.Increment = 1F;
this.NudStart.Location = new System.Drawing.Point(195, 139);
this.NudStart.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.NudStart.Location = new System.Drawing.Point(130, 93);
this.NudStart.Maximum = 9999F;
this.NudStart.Minimum = 0F;
this.NudStart.Name = "NudStart";
this.NudStart.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.NudStart.Size = new System.Drawing.Size(183, 57);
this.NudStart.Padding = new System.Windows.Forms.Padding(3, 3, 3, 3);
this.NudStart.Size = new System.Drawing.Size(121, 39);
this.NudStart.TabIndex = 40;
this.NudStart.Text = "0";
this.NudStart.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
......@@ -371,11 +357,10 @@ namespace SmartScan
this.LblKeyword.BorderWidth = 0;
this.LblKeyword.Dock = System.Windows.Forms.DockStyle.Fill;
this.LblKeyword.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230)))));
this.LblKeyword.Location = new System.Drawing.Point(386, 5);
this.LblKeyword.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.LblKeyword.Location = new System.Drawing.Point(257, 3);
this.LblKeyword.Name = "LblKeyword";
this.LblKeyword.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.LblKeyword.Size = new System.Drawing.Size(183, 57);
this.LblKeyword.Padding = new System.Windows.Forms.Padding(3, 3, 3, 3);
this.LblKeyword.Size = new System.Drawing.Size(121, 39);
this.LblKeyword.TabIndex = 36;
this.LblKeyword.Text = "key";
this.LblKeyword.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
......@@ -387,11 +372,10 @@ namespace SmartScan
this.LblSplitPart.BorderWidth = 0;
this.LblSplitPart.Dock = System.Windows.Forms.DockStyle.Fill;
this.LblSplitPart.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230)))));
this.LblSplitPart.Location = new System.Drawing.Point(386, 72);
this.LblSplitPart.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.LblSplitPart.Location = new System.Drawing.Point(257, 48);
this.LblSplitPart.Name = "LblSplitPart";
this.LblSplitPart.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.LblSplitPart.Size = new System.Drawing.Size(183, 57);
this.LblSplitPart.Padding = new System.Windows.Forms.Padding(3, 3, 3, 3);
this.LblSplitPart.Size = new System.Drawing.Size(121, 39);
this.LblSplitPart.TabIndex = 46;
this.LblSplitPart.Text = "Field";
this.LblSplitPart.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
......@@ -403,13 +387,12 @@ namespace SmartScan
this.CboMatchingSplit.BorderWidth = 2;
this.CboMatchingSplit.Dock = System.Windows.Forms.DockStyle.Fill;
this.CboMatchingSplit.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230)))));
this.CboMatchingSplit.Location = new System.Drawing.Point(195, 72);
this.CboMatchingSplit.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.CboMatchingSplit.Location = new System.Drawing.Point(130, 48);
this.CboMatchingSplit.Name = "CboMatchingSplit";
this.CboMatchingSplit.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.CboMatchingSplit.Padding = new System.Windows.Forms.Padding(3, 3, 3, 3);
this.CboMatchingSplit.SelectedIndex = -1;
this.CboMatchingSplit.SelectedText = "";
this.CboMatchingSplit.Size = new System.Drawing.Size(183, 57);
this.CboMatchingSplit.Size = new System.Drawing.Size(121, 39);
this.CboMatchingSplit.TabIndex = 45;
this.CboMatchingSplit.Text = "faceComboBox1";
this.CboMatchingSplit.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
......@@ -424,11 +407,10 @@ namespace SmartScan
this.ChkLengthEnd.BorderWidth = 0;
this.ChkLengthEnd.Dock = System.Windows.Forms.DockStyle.Fill;
this.ChkLengthEnd.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230)))));
this.ChkLengthEnd.Location = new System.Drawing.Point(386, 206);
this.ChkLengthEnd.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.ChkLengthEnd.Location = new System.Drawing.Point(257, 138);
this.ChkLengthEnd.Name = "ChkLengthEnd";
this.ChkLengthEnd.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.ChkLengthEnd.Size = new System.Drawing.Size(183, 57);
this.ChkLengthEnd.Padding = new System.Windows.Forms.Padding(3, 3, 3, 3);
this.ChkLengthEnd.Size = new System.Drawing.Size(121, 39);
this.ChkLengthEnd.TabIndex = 42;
this.ChkLengthEnd.Text = "faceCheckBox7";
this.ChkLengthEnd.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
......@@ -442,11 +424,10 @@ namespace SmartScan
this.BtnDel.Dock = System.Windows.Forms.DockStyle.Fill;
this.BtnDel.ForeColor = System.Drawing.Color.Red;
this.BtnDel.HoldPress = false;
this.BtnDel.Location = new System.Drawing.Point(577, 340);
this.BtnDel.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.BtnDel.Location = new System.Drawing.Point(384, 228);
this.BtnDel.Name = "BtnDel";
this.BtnDel.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.BtnDel.Size = new System.Drawing.Size(186, 64);
this.BtnDel.Padding = new System.Windows.Forms.Padding(3, 3, 3, 3);
this.BtnDel.Size = new System.Drawing.Size(124, 69);
this.BtnDel.TabIndex = 43;
this.BtnDel.Text = "Del";
this.BtnDel.Click += new System.EventHandler(this.BtnDel_Click);
......@@ -458,11 +439,10 @@ namespace SmartScan
this.ChkMatchisnumber.BorderWidth = 0;
this.ChkMatchisnumber.Dock = System.Windows.Forms.DockStyle.Fill;
this.ChkMatchisnumber.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230)))));
this.ChkMatchisnumber.Location = new System.Drawing.Point(4, 206);
this.ChkMatchisnumber.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.ChkMatchisnumber.Location = new System.Drawing.Point(3, 138);
this.ChkMatchisnumber.Name = "ChkMatchisnumber";
this.ChkMatchisnumber.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.ChkMatchisnumber.Size = new System.Drawing.Size(183, 57);
this.ChkMatchisnumber.Padding = new System.Windows.Forms.Padding(3, 3, 3, 3);
this.ChkMatchisnumber.Size = new System.Drawing.Size(121, 39);
this.ChkMatchisnumber.TabIndex = 53;
this.ChkMatchisnumber.Text = "AsNumber";
this.ChkMatchisnumber.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
......@@ -475,11 +455,10 @@ namespace SmartScan
this.pnlParseResult.Controls.Add(this.faceTextBox1);
this.pnlParseResult.Dock = System.Windows.Forms.DockStyle.Top;
this.pnlParseResult.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230)))));
this.pnlParseResult.Location = new System.Drawing.Point(4, 5);
this.pnlParseResult.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.pnlParseResult.Location = new System.Drawing.Point(3, 3);
this.pnlParseResult.Name = "pnlParseResult";
this.pnlParseResult.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.pnlParseResult.Size = new System.Drawing.Size(776, 161);
this.pnlParseResult.Padding = new System.Windows.Forms.Padding(3, 3, 3, 3);
this.pnlParseResult.Size = new System.Drawing.Size(517, 81);
this.pnlParseResult.TabIndex = 44;
this.pnlParseResult.Text = "解析结果";
this.pnlParseResult.TitleFont = new System.Drawing.Font("宋体", 12F);
......@@ -493,30 +472,28 @@ namespace SmartScan
this.faceTextBox1.BorderStyle = Asa.FaceControl.ControlShape.Rectangle;
this.faceTextBox1.BorderWidth = 2;
this.faceTextBox1.Font = new System.Drawing.Font("宋体", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.faceTextBox1.Location = new System.Drawing.Point(4, 41);
this.faceTextBox1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.faceTextBox1.Location = new System.Drawing.Point(3, 27);
this.faceTextBox1.MaxLength = 32767;
this.faceTextBox1.Multiline = true;
this.faceTextBox1.Name = "faceTextBox1";
this.faceTextBox1.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.faceTextBox1.Padding = new System.Windows.Forms.Padding(3, 3, 3, 3);
this.faceTextBox1.ReadOnly = true;
this.faceTextBox1.SelectedText = "";
this.faceTextBox1.SelectionLength = 0;
this.faceTextBox1.SelectionStart = 0;
this.faceTextBox1.ShowDel = false;
this.faceTextBox1.ShowQuery = false;
this.faceTextBox1.Size = new System.Drawing.Size(767, 110);
this.faceTextBox1.Size = new System.Drawing.Size(511, 48);
this.faceTextBox1.TabIndex = 48;
this.faceTextBox1.Text = "faceTextBox1";
//
// UsrCodeExtractList
//
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 18F);
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.facePanel1);
this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.Name = "UsrCodeExtractList";
this.Size = new System.Drawing.Size(784, 648);
this.Size = new System.Drawing.Size(523, 432);
this.facePanel1.ResumeLayout(false);
this.pnlExtractRule.ResumeLayout(false);
this.tableLayoutPanel1.ResumeLayout(false);
......
......@@ -166,7 +166,8 @@ namespace SmartScan
public WebResultCode ProcessBitmaps(BitmapData bitmapData)
{
BLLCommon.mateEdit.CurrntBitmap?.Dispose();
Bitmap bitmap = null;
Bitmap bitmap = null;
MemoryStream stream = null;
try
{
if (bitmapData == null)
......@@ -180,10 +181,9 @@ namespace SmartScan
byte[] imageData = Convert.FromBase64String(bitmapData.ImageData);
using (MemoryStream stream = new MemoryStream(imageData))
{
bitmap = new Bitmap(stream);
}
stream = new MemoryStream(imageData);
bitmap = new Bitmap(stream);
if (bitmap == null)
{
return new WebResultCode() { ErrorCode = -1, Msg = "图片解析完成为空;" };
......@@ -263,6 +263,7 @@ namespace SmartScan
}
finally {
bitmap?.Dispose();
stream?.Dispose();
}
}
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!