Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
Line-Smart-Workstation
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 81cd6d0a
由
LN
编写于
2024-07-17 09:55:04 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1
1 个父辈
31cad832
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
24 行增加
和
11 行删除
TSA-V/workForm/FrmAOICheckN.Designer.cs
TSA-V/workForm/FrmAOICheckN.cs
TSA-V/workForm/FrmAOICheckN.Designer.cs
查看文件 @
81cd6d0
...
...
@@ -121,7 +121,7 @@ namespace TSA_V
this
.
lblResult
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)));
this
.
lblResult
.
Font
=
new
System
.
Drawing
.
Font
(
"宋体"
,
60F
,
System
.
Drawing
.
FontStyle
.
Bold
);
this
.
lblResult
.
ForeColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
192
)))),
((
int
)(((
byte
)(
192
)))),
((
int
)(((
byte
)(
0
)))));
this
.
lblResult
.
Location
=
new
System
.
Drawing
.
Point
(
3
,
141
);
this
.
lblResult
.
Location
=
new
System
.
Drawing
.
Point
(
5
,
141
);
this
.
lblResult
.
Name
=
"lblResult"
;
this
.
lblResult
.
Size
=
new
System
.
Drawing
.
Size
(
124
,
85
);
this
.
lblResult
.
TabIndex
=
8
;
...
...
@@ -130,7 +130,7 @@ namespace TSA_V
//
// btnUpdateImg
//
this
.
btnUpdateImg
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Lef
t
)));
this
.
btnUpdateImg
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Righ
t
)));
this
.
btnUpdateImg
.
BackColor
=
System
.
Drawing
.
Color
.
Transparent
;
this
.
btnUpdateImg
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnUpdateImg
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
...
...
@@ -160,7 +160,7 @@ namespace TSA_V
//
// btnExit
//
this
.
btnExit
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Lef
t
)));
this
.
btnExit
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Righ
t
)));
this
.
btnExit
.
BackColor
=
System
.
Drawing
.
Color
.
Transparent
;
this
.
btnExit
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnExit
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
...
...
@@ -174,7 +174,7 @@ namespace TSA_V
//
// btnRun
//
this
.
btnRun
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Lef
t
)));
this
.
btnRun
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Righ
t
)));
this
.
btnRun
.
BackColor
=
System
.
Drawing
.
Color
.
Transparent
;
this
.
btnRun
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnRun
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
...
...
@@ -211,7 +211,7 @@ namespace TSA_V
this
.
picResult
.
ImageBorderColor
=
System
.
Drawing
.
SystemColors
.
ActiveCaptionText
;
this
.
picResult
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
0
);
this
.
picResult
.
Name
=
"picResult"
;
this
.
picResult
.
Size
=
new
System
.
Drawing
.
Size
(
644
,
7
58
);
this
.
picResult
.
Size
=
new
System
.
Drawing
.
Size
(
644
,
7
63
);
this
.
picResult
.
TabIndex
=
297
;
this
.
picResult
.
Paint
+=
new
System
.
Windows
.
Forms
.
PaintEventHandler
(
this
.
picResult_Paint
);
this
.
picResult
.
DoubleClick
+=
new
System
.
EventHandler
(
this
.
picResult_DoubleClick
);
...
...
TSA-V/workForm/FrmAOICheckN.cs
查看文件 @
81cd6d0
...
...
@@ -55,11 +55,11 @@ namespace TSA_V
}
else
{
string
currProjectName
=
BoardManager
.
CurrBoard
.
GetAoiFileName
();
//string filePath = Application.StartupPath + @"\config\\AOIConfig" + currProjectName + "bmp";
string
extension
=
Path
.
GetExtension
(
currProjectName
);
string
filename
=
currProjectName
.
Replace
(
extension
,
".bmp"
);
ShowBaseImg
(
filename
,
"Base"
);
//
string currProjectName = BoardManager.CurrBoard.GetAoiFileName();
//
//
string filePath = Application.StartupPath + @"\config\\AOIConfig" + currProjectName + "bmp";
//
string extension = Path.GetExtension(currProjectName);
//
string filename = currProjectName.Replace(extension, ".bmp");
//
ShowBaseImg(filename,"Base");
}
ShowMsg
(
ResourceCulture
.
GetString
(
"{0}秒后自动检测"
,
"{0}秒后自动检测"
,
waitSeconds
.
ToString
()));
修正
ToolStripMenuItem
.
Text
=
ResourceCulture
.
GetString
(
"FrmAOICheck_btnUpdateImg_Text"
,
"修正"
);
...
...
@@ -91,7 +91,7 @@ namespace TSA_V
if
(
File
.
Exists
(
filePath
))
{
var
bmp
=
new
Bitmap
(
filePath
);
this
.
picResult
.
Image
=
Eyemlib
.
DeepClone
(
bmp
);
this
.
picResult
.
Image
=
Eyemlib
.
DeepClone
(
bmp
);
bmp
.
Dispose
();
}
...
...
@@ -350,6 +350,19 @@ namespace TSA_V
private
void
FrmCameraAOI_Shown
(
object
sender
,
EventArgs
e
)
{
showTime
=
DateTime
.
Now
;
if
(
CurrProject
==
null
)
{
this
.
Close
();
return
;
}
else
{
string
currProjectName
=
BoardManager
.
CurrBoard
.
GetAoiFileName
();
//string filePath = Application.StartupPath + @"\config\\AOIConfig" + currProjectName + "bmp";
string
extension
=
Path
.
GetExtension
(
currProjectName
);
string
filename
=
currProjectName
.
Replace
(
extension
,
".bmp"
);
ShowBaseImg
(
filename
,
"Base"
);
}
}
private
void
btnExit_Click_1
(
object
sender
,
EventArgs
e
)
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论