Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
Line-Smart-Workstation
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 23b1e36c
由
LN
编写于
2025-08-28 08:59:43 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
bug修改
1 个父辈
32f60895
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
44 行增加
和
3 行删除
TSA-V/frmBoard/FrmAddBoard.cs
TSA-V/frmBoard/FrmBoardInfo.cs
TSA-V/workForm/PointDisplay.cs
TSA-V/frmBoard/FrmAddBoard.cs
查看文件 @
23b1e36
...
@@ -439,9 +439,27 @@ namespace TSA_V
...
@@ -439,9 +439,27 @@ namespace TSA_V
{
{
string
[]
files
=
openFileDialogImg
.
FileNames
;
string
[]
files
=
openFileDialogImg
.
FileNames
;
List
<
string
>
fileTypes
=
new
List
<
string
>()
{
".bmp"
,
".jpg"
,
".gif"
,
".png"
,
".jpeg"
};
string
defPath
=
Path
.
GetPathRoot
(
Application
.
StartupPath
)
+
@"image\"
;
FrmNImageViewer
imageViewer
;
FrmNImageViewer
imageViewer
;
bool
findOK
=
false
;
foreach
(
string
file
in
files
)
{
string
ext
=
Path
.
GetExtension
(
file
);
if
(
fileTypes
.
Contains
(
ext
.
ToLower
()))
{
imageViewer
=
new
FrmNImageViewer
(
openFileDialogImg
.
FileName
);
if
(!
imageViewer
.
ShowDialog
().
Equals
(
DialogResult
.
Cancel
))
{
openFileDialogImg
.
Tag
=
true
;
this
.
txtImagePath
.
Text
=
openFileDialogImg
.
FileName
;
return
;
}
Setting_NInit
.
Data_LastOpenImagePath
=
Path
.
GetDirectoryName
(
file
);
findOK
=
true
;
return
;
}
}
string
defPath
=
Path
.
GetPathRoot
(
Application
.
StartupPath
)
+
@"image\"
;
//List<string> newFiles = FileUtil.FileProcess(openFileDialog.FileNames);
//List<string> newFiles = FileUtil.FileProcess(openFileDialog.FileNames);
GerberVS
.
BoundingBox
boxBound
=
GerberVS
.
AGerberController
.
OpenLayers
(
files
,
defPath
,
out
string
filename
);
GerberVS
.
BoundingBox
boxBound
=
GerberVS
.
AGerberController
.
OpenLayers
(
files
,
defPath
,
out
string
filename
);
if
(
boxBound
!=
null
&&
File
.
Exists
(
filename
))
if
(
boxBound
!=
null
&&
File
.
Exists
(
filename
))
...
@@ -477,7 +495,7 @@ namespace TSA_V
...
@@ -477,7 +495,7 @@ namespace TSA_V
}
}
else
else
{
{
List
<
string
>
fileTypes
=
new
List
<
string
>()
{
".bmp"
,
".jpg"
,
".gif"
,
".png"
,
".jpeg"
};
//
List<string> fileTypes = new List<string>() { ".bmp", ".jpg", ".gif", ".png", ".jpeg" };
foreach
(
string
file
in
files
)
foreach
(
string
file
in
files
)
{
{
string
ext
=
Path
.
GetExtension
(
file
);
string
ext
=
Path
.
GetExtension
(
file
);
...
...
TSA-V/frmBoard/FrmBoardInfo.cs
查看文件 @
23b1e36
...
@@ -1597,10 +1597,18 @@ namespace TSA_V
...
@@ -1597,10 +1597,18 @@ namespace TSA_V
updateBoardInfo
.
PointColor
=
color
;
updateBoardInfo
.
PointColor
=
color
;
for
(
int
i
=
0
;
i
<
updateBoardInfo
.
smtList
.
Count
;
i
++)
for
(
int
i
=
0
;
i
<
updateBoardInfo
.
smtList
.
Count
;
i
++)
{
{
if
(
dgvList
.
Rows
.
Count
>
i
)
{
dgvList
.
Rows
[
i
].
Cells
[
this
.
Column_NodeX
.
Name
].
Value
=
updateBoardInfo
.
smtList
[
i
].
NodePositionX
;
dgvList
.
Rows
[
i
].
Cells
[
this
.
Column_NodeX
.
Name
].
Value
=
updateBoardInfo
.
smtList
[
i
].
NodePositionX
;
dgvList
.
Rows
[
i
].
Cells
[
this
.
Column_NodeY
.
Name
].
Value
=
updateBoardInfo
.
smtList
[
i
].
NodePositionY
;
dgvList
.
Rows
[
i
].
Cells
[
this
.
Column_NodeY
.
Name
].
Value
=
updateBoardInfo
.
smtList
[
i
].
NodePositionY
;
dgvList
.
Rows
[
i
].
Cells
[
this
.
Column_PointSizeX
.
Name
].
Value
=
updateBoardInfo
.
smtList
[
i
].
PointSizeX
;
dgvList
.
Rows
[
i
].
Cells
[
this
.
Column_PointSizeX
.
Name
].
Value
=
updateBoardInfo
.
smtList
[
i
].
PointSizeX
;
dgvList
.
Rows
[
i
].
Cells
[
this
.
Column_PointSizeY
.
Name
].
Value
=
updateBoardInfo
.
smtList
[
i
].
PointSizeY
;
dgvList
.
Rows
[
i
].
Cells
[
this
.
Column_PointSizeY
.
Name
].
Value
=
updateBoardInfo
.
smtList
[
i
].
PointSizeY
;
}
else
{
LogUtil
.
error
(
"btnCalibrate_Click 未找到dgvList.Rows.Count > "
+
i
+
"的数据"
);
}
}
}
SetListCurrCell
(
index
);
SetListCurrCell
(
index
);
...
...
TSA-V/workForm/PointDisplay.cs
查看文件 @
23b1e36
...
@@ -30,8 +30,23 @@ namespace TSA_V
...
@@ -30,8 +30,23 @@ namespace TSA_V
public
bool
IsWorkForm
=
false
;
public
bool
IsWorkForm
=
false
;
public
void
SetImage
(
Image
image
)
public
void
SetImage
(
Image
image
)
{
{
try
{
// 新增:确保在UI线程操作控件
if
(
picBoard
?.
InvokeRequired
??
false
)
{
picBoard
.
Invoke
(
new
Action
<
Image
>(
SetImage
),
image
);
return
;
}
picBoard
.
Image
=
image
;
picBoard
.
Image
=
image
;
this
.
PicImage
=
image
;
this
.
PicImage
=
image
;
}
catch
(
Exception
ex
)
{
LogUtil
.
error
(
"PointDisplay SetImage error:"
+
ex
.
ToString
());
}
}
}
public
void
SetPic
(
PictureBox
p
,
Panel
pan
)
public
void
SetPic
(
PictureBox
p
,
Panel
pan
)
{
{
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论