Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
AccAOI
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit c5138f5c
由
LN
编写于
2019-08-14 11:17:09 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
界面调整
1 个父辈
9e076ac3
全部展开
显示空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
60 行增加
和
16 行删除
AccAOI/FrmAoiSetting.Designer.cs
AccAOI/FrmAoiSetting.cs
AccAOI/Properties/en-US.resource
AccAOI/Properties/zh-CN.resource
AccAOI/control/ABaseControl.Designer.cs
AccAOI/control/AioMarkControl.Designer.cs
AccAOI/control/AioTempMatchControl.Designer.cs
AccAOI/control/AoiBlobControl.Designer.cs
AccAOI/control/AoiRgbControl.Designer.cs
AccAOI/FrmAoiSetting.Designer.cs
查看文件 @
c5138f5
此文件的差异被折叠,
点击展开。
AccAOI/FrmAoiSetting.cs
查看文件 @
c5138f5
...
...
@@ -60,11 +60,7 @@ namespace AccAOI
}
private
void
FrmAoiSetting_Load
(
object
sender
,
EventArgs
e
)
{
comType
.
ItemAdd
(
ControlType
.
Mark
);
comType
.
ItemAdd
(
ControlType
.
AOIBlob
);
comType
.
ItemAdd
(
ControlType
.
AOIRGB
);
comType
.
ItemAdd
(
ControlType
.
Match
);
comType
.
Text
=
ControlType
.
Mark
;
LoadTypes
();
//string defaultImg = "F:\\电路板图片\\照片 2创建于2019年4月19日 11_34_53.jpg";
//if (System.IO.File.Exists(defaultImg))
//{
...
...
@@ -90,6 +86,16 @@ namespace AccAOI
}
}
private
void
LoadTypes
()
{
comType
.
Clear
();
comType
.
ItemAdd
(
ControlType
.
Mark
);
comType
.
ItemAdd
(
ControlType
.
AOIBlob
);
comType
.
ItemAdd
(
ControlType
.
AOIRGB
);
comType
.
ItemAdd
(
ControlType
.
Match
);
comType
.
Text
=
ControlType
.
Mark
;
}
private
void
btnOpenImage_Click
(
object
sender
,
EventArgs
e
)
{
System
.
Windows
.
Forms
.
OpenFileDialog
openDialog
=
new
System
.
Windows
.
Forms
.
OpenFileDialog
();
...
...
@@ -699,5 +705,36 @@ namespace AccAOI
MessageBox
.
Show
(
ex
.
ToString
());
}
}
private
void
btnLan_Click
(
object
sender
,
EventArgs
e
)
{
if
(
AOIResourceCulture
.
CurrLanguage
.
Equals
(
AOIResourceCulture
.
China
))
{
AOIResourceCulture
.
SetCurrentCulture
(
AOIResourceCulture
.
English
);
}
else
{
AOIResourceCulture
.
SetCurrentCulture
(
AOIResourceCulture
.
China
);
}
LanguageProcess
();
LanguagePro
();
if
(
aoiControl
!=
null
)
{
aoiControl
.
LanguageProcess
();
aoiControl
.
LanguagePro
();
}
}
public
override
void
LanguagePro
()
{
if
(
AOIResourceCulture
.
CurrLanguage
.
Equals
(
AOIResourceCulture
.
China
))
{
btnLan
.
Text
=
AOIResourceCulture
.
GetValue
(
"英文"
);
}
else
{
btnLan
.
Text
=
AOIResourceCulture
.
GetValue
(
"中文"
);
}
LoadTypes
();
}
}
}
AccAOI/Properties/en-US.resource
查看文件 @
c5138f5
...
...
@@ -7,11 +7,11 @@ FrmAoiSetting_btnImageChange_Text=Switch to test Image
FrmAoiSetting_btnDel_Text=Delete
FrmAoiSetting_btnExcute_Text=Execute
FrmAoiSetting_btnGetCameraImg_Text=Get standard Image
FrmAoiSetting_flatLabel1_Text=
The camera list
FrmAoiSetting_flatLabel1_Text=
Cameras:
FrmAoiSetting_btnOpenImage_Text=Select reference picture
FrmAoiSetting_btnNewAoi_Text=New
FrmAoiSetting_btnSavePro_Text=Save
the
project
FrmAoiSetting_btnOpenPro_Text=Open
the
project
FrmAoiSetting_btnSavePro_Text=Save project
FrmAoiSetting_btnOpenPro_Text=Open project
AioMarkControl_btnClearArea_Text=Clear
AioMarkControl_panResult_Text=result judgment
AioMarkControl_panParam_Text=parameter setting
...
...
@@ -108,3 +108,5 @@ FrmMethodName_btnCancel_Text=Cancel
椭圆=ellipse
参数设置=parameter setting
结果判断=result judgment
中文=Chinese
英文=English
\ No newline at end of file
AccAOI/Properties/zh-CN.resource
查看文件 @
c5138f5
...
...
@@ -7,7 +7,7 @@ FrmAoiSetting_btnImageChange_Text=切换为测试图片
FrmAoiSetting_btnDel_Text=删除
FrmAoiSetting_btnExcute_Text=执行
FrmAoiSetting_btnGetCameraImg_Text=获取基准图片
FrmAoiSetting_flatLabel1_Text=相机
列表
FrmAoiSetting_flatLabel1_Text=相机
:
FrmAoiSetting_btnOpenImage_Text=选择基准图片
FrmAoiSetting_btnNewAoi_Text=新增
FrmAoiSetting_btnSavePro_Text=保存项目
...
...
@@ -108,3 +108,5 @@ FrmMethodName_btnCancel_Text=取消
椭圆=椭圆
参数设置=参数设置
结果判断=结果判断
中文=中文
英文=英文
\ No newline at end of file
AccAOI/control/ABaseControl.Designer.cs
查看文件 @
c5138f5
...
...
@@ -81,7 +81,7 @@ namespace AccAOI.control
this
.
panResult
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
491
);
this
.
panResult
.
Name
=
"panResult"
;
this
.
panResult
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
6
,
30
,
6
,
6
);
this
.
panResult
.
Size
=
new
System
.
Drawing
.
Size
(
298
,
33
0
);
this
.
panResult
.
Size
=
new
System
.
Drawing
.
Size
(
298
,
33
5
);
this
.
panResult
.
TabIndex
=
5
;
this
.
panResult
.
Text
=
"结果判断"
;
//
...
...
@@ -146,7 +146,7 @@ namespace AccAOI.control
this
.
panControl
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
0
);
this
.
panControl
.
Name
=
"panControl"
;
this
.
panControl
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
6
,
30
,
6
,
6
);
this
.
panControl
.
Size
=
new
System
.
Drawing
.
Size
(
3
09
,
829
);
this
.
panControl
.
Size
=
new
System
.
Drawing
.
Size
(
3
10
,
831
);
this
.
panControl
.
TabIndex
=
0
;
this
.
panControl
.
Text
=
"斑点分析"
;
//
...
...
AccAOI/control/AioMarkControl.Designer.cs
查看文件 @
c5138f5
...
...
@@ -60,6 +60,7 @@
this
.
panResult
.
Controls
.
Add
(
this
.
btnOpenImage
);
this
.
panResult
.
Controls
.
Add
(
this
.
btnTest
);
this
.
panResult
.
Controls
.
Add
(
this
.
lblResult
);
this
.
panResult
.
Size
=
new
System
.
Drawing
.
Size
(
298
,
333
);
//
// flatLabel1
//
...
...
AccAOI/control/AioTempMatchControl.Designer.cs
查看文件 @
c5138f5
...
...
@@ -46,6 +46,7 @@
this
.
panParam
.
Controls
.
Add
(
this
.
txtSamePercent
);
this
.
panParam
.
Controls
.
Add
(
this
.
trackBarSamePercent
);
this
.
panParam
.
Controls
.
Add
(
this
.
flatLabel3
);
this
.
panParam
.
Size
=
new
System
.
Drawing
.
Size
(
298
,
88
);
//
// panResult
//
...
...
@@ -54,6 +55,8 @@
this
.
panResult
.
Controls
.
Add
(
this
.
btnOpenImage
);
this
.
panResult
.
Controls
.
Add
(
this
.
btnTest
);
this
.
panResult
.
Controls
.
Add
(
this
.
lblResult
);
this
.
panResult
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
413
);
this
.
panResult
.
Size
=
new
System
.
Drawing
.
Size
(
298
,
410
);
//
// lblResult
//
...
...
AccAOI/control/AoiBlobControl.Designer.cs
查看文件 @
c5138f5
...
...
@@ -51,16 +51,15 @@
//
// panParam
//
this
.
panParam
.
Location
=
new
System
.
Drawing
.
Point
(
2
,
319
);
this
.
panParam
.
Size
=
new
System
.
Drawing
.
Size
(
302
,
128
);
this
.
panParam
.
Size
=
new
System
.
Drawing
.
Size
(
298
,
128
);
//
// panResult
//
this
.
panResult
.
Controls
.
Add
(
this
.
lblList
);
this
.
panResult
.
Controls
.
Add
(
this
.
txtNumResult
);
this
.
panResult
.
Controls
.
Add
(
this
.
btnUpdate
);
this
.
panResult
.
Location
=
new
System
.
Drawing
.
Point
(
2
,
450
);
this
.
panResult
.
Size
=
new
System
.
Drawing
.
Size
(
302
,
370
);
this
.
panResult
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
450
);
this
.
panResult
.
Size
=
new
System
.
Drawing
.
Size
(
298
,
373
);
//
// flatLabel1
//
...
...
@@ -258,7 +257,7 @@
this
.
lblList
.
ForeColor
=
System
.
Drawing
.
Color
.
White
;
this
.
lblList
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
166
);
this
.
lblList
.
Name
=
"lblList"
;
this
.
lblList
.
Size
=
new
System
.
Drawing
.
Size
(
28
4
,
198
);
this
.
lblList
.
Size
=
new
System
.
Drawing
.
Size
(
28
0
,
201
);
this
.
lblList
.
TabIndex
=
0
;
this
.
lblList
.
Text
=
"面积列表:"
;
//
...
...
AccAOI/control/AoiRgbControl.Designer.cs
查看文件 @
c5138f5
此文件的差异被折叠,
点击展开。
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论