Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
G
GC_Branch
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
周磊
GC_Branch
Commits
4e2bed0e
Commit
4e2bed0e
authored
Aug 09, 2018
by
wangjunqiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改温度显示为一个小数点
parent
b6ab6dae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
DataState.cs
GcDevicePc/DataState.cs
+16
-16
No files found.
GcDevicePc/DataState.cs
View file @
4e2bed0e
...
...
@@ -192,10 +192,10 @@ namespace GcDevicePc
tempshow
.
Text
=
"前进样口"
;
if
(
globaldata
.
m_dpbuffer
.
ShowList
.
showtemp
.
FPSetTemp
==
0.0f
)
tempshow
.
SubItems
.
Add
(
globaldata
.
m_dpbuffer
.
ShowList
.
showtemp
.
FPActualTemp
.
ToString
(
"#0.0
0
"
)
+
" / "
+
"等待读取"
);
tempshow
.
SubItems
.
Add
(
globaldata
.
m_dpbuffer
.
ShowList
.
showtemp
.
FPActualTemp
.
ToString
(
"#0.0"
)
+
" / "
+
"等待读取"
);
else
{
tempshow
.
SubItems
.
Add
(
globaldata
.
m_dpbuffer
.
ShowList
.
showtemp
.
FPActualTemp
.
ToString
(
"#0.0
0
"
)
+
" / "
+
globaldata
.
m_dpbuffer
.
ShowList
.
showtemp
.
FPSetTemp
.
ToString
(
"0"
));
tempshow
.
SubItems
.
Add
(
globaldata
.
m_dpbuffer
.
ShowList
.
showtemp
.
FPActualTemp
.
ToString
(
"#0.0"
)
+
" / "
+
globaldata
.
m_dpbuffer
.
ShowList
.
showtemp
.
FPSetTemp
.
ToString
(
"0"
));
this
.
datalist
.
Items
.
Add
(
tempshow
);
}
}
...
...
@@ -206,10 +206,10 @@ namespace GcDevicePc
tempshow
.
Text
=
"后进样口"
;
if
(
globaldata
.
m_dpbuffer
.
ShowList
.
showtemp
.
BPSetTemp
==
0.0f
)
tempshow
.
SubItems
.
Add
(
globaldata
.
m_dpbuffer
.
ShowList
.
showtemp
.
BPActualTemp
.
ToString
(
"#0.0
0
"
)
+
" / "
+
"等待读取"
);
tempshow
.
SubItems
.
Add
(
globaldata
.
m_dpbuffer
.
ShowList
.
showtemp
.
BPActualTemp
.
ToString
(
"#0.0"
)
+
" / "
+
"等待读取"
);
else
{
tempshow
.
SubItems
.
Add
(
globaldata
.
m_dpbuffer
.
ShowList
.
showtemp
.
BPActualTemp
.
ToString
(
"#0.0
0
"
)
+
" / "
+
globaldata
.
m_dpbuffer
.
ShowList
.
showtemp
.
BPSetTemp
.
ToString
(
"0"
));
tempshow
.
SubItems
.
Add
(
globaldata
.
m_dpbuffer
.
ShowList
.
showtemp
.
BPActualTemp
.
ToString
(
"#0.0"
)
+
" / "
+
globaldata
.
m_dpbuffer
.
ShowList
.
showtemp
.
BPSetTemp
.
ToString
(
"0"
));
this
.
datalist
.
Items
.
Add
(
tempshow
);
}
...
...
@@ -221,10 +221,10 @@ namespace GcDevicePc
tempshow
.
Text
=
"柱箱"
;
if
(
globaldata
.
m_dpbuffer
.
ShowList
.
showtemp
.
ColSetTemp
==
0.0f
)
tempshow
.
SubItems
.
Add
(
globaldata
.
m_dpbuffer
.
ShowList
.
showtemp
.
ColActualTemp
.
ToString
(
"#0.0
0
"
)
+
" / "
+
"等待读取"
);
tempshow
.
SubItems
.
Add
(
globaldata
.
m_dpbuffer
.
ShowList
.
showtemp
.
ColActualTemp
.
ToString
(
"#0.0"
)
+
" / "
+
"等待读取"
);
else
{
tempshow
.
SubItems
.
Add
(
globaldata
.
m_dpbuffer
.
ShowList
.
showtemp
.
ColActualTemp
.
ToString
(
"#0.0
0
"
)
+
" / "
+
globaldata
.
m_dpbuffer
.
ShowList
.
showtemp
.
ColSetTemp
.
ToString
(
"0"
));
tempshow
.
SubItems
.
Add
(
globaldata
.
m_dpbuffer
.
ShowList
.
showtemp
.
ColActualTemp
.
ToString
(
"#0.0"
)
+
" / "
+
globaldata
.
m_dpbuffer
.
ShowList
.
showtemp
.
ColSetTemp
.
ToString
(
"0"
));
this
.
datalist
.
Items
.
Add
(
tempshow
);
}
...
...
@@ -246,10 +246,10 @@ namespace GcDevicePc
}
if
(
globaldata
.
m_dpbuffer
.
ShowList
.
showtemp
.
fDetSetTemp
==
0.0f
)
tempshow
.
SubItems
.
Add
(
globaldata
.
m_dpbuffer
.
ShowList
.
showtemp
.
fDetActualTemp
.
ToString
(
"#0.0
0
"
)
+
" / "
+
"等待读取"
);
tempshow
.
SubItems
.
Add
(
globaldata
.
m_dpbuffer
.
ShowList
.
showtemp
.
fDetActualTemp
.
ToString
(
"#0.0"
)
+
" / "
+
"等待读取"
);
else
{
tempshow
.
SubItems
.
Add
(
globaldata
.
m_dpbuffer
.
ShowList
.
showtemp
.
fDetActualTemp
.
ToString
(
"#0.0
0
"
)
+
" / "
+
globaldata
.
m_dpbuffer
.
ShowList
.
showtemp
.
fDetSetTemp
.
ToString
(
"0"
));
tempshow
.
SubItems
.
Add
(
globaldata
.
m_dpbuffer
.
ShowList
.
showtemp
.
fDetActualTemp
.
ToString
(
"#0.0"
)
+
" / "
+
globaldata
.
m_dpbuffer
.
ShowList
.
showtemp
.
fDetSetTemp
.
ToString
(
"0"
));
this
.
datalist
.
Items
.
Add
(
tempshow
);
}
}
...
...
@@ -271,10 +271,10 @@ namespace GcDevicePc
}
if
(
globaldata
.
m_dpbuffer
.
ShowList
.
showtemp
.
iDetSetTemp
==
0.0f
)
tempshow
.
SubItems
.
Add
(
globaldata
.
m_dpbuffer
.
ShowList
.
showtemp
.
iDetActualTemp
.
ToString
(
"#0.0
0
"
)
+
" / "
+
"等待读取"
);
tempshow
.
SubItems
.
Add
(
globaldata
.
m_dpbuffer
.
ShowList
.
showtemp
.
iDetActualTemp
.
ToString
(
"#0.0"
)
+
" / "
+
"等待读取"
);
else
{
tempshow
.
SubItems
.
Add
(
globaldata
.
m_dpbuffer
.
ShowList
.
showtemp
.
iDetActualTemp
.
ToString
(
"#0.0
0
"
)
+
" / "
+
globaldata
.
m_dpbuffer
.
ShowList
.
showtemp
.
iDetSetTemp
.
ToString
(
"0"
));
tempshow
.
SubItems
.
Add
(
globaldata
.
m_dpbuffer
.
ShowList
.
showtemp
.
iDetActualTemp
.
ToString
(
"#0.0"
)
+
" / "
+
globaldata
.
m_dpbuffer
.
ShowList
.
showtemp
.
iDetSetTemp
.
ToString
(
"0"
));
this
.
datalist
.
Items
.
Add
(
tempshow
);
}
...
...
@@ -295,12 +295,12 @@ namespace GcDevicePc
if
(
globaldata
.
m_dpbuffer
.
ShowList
.
showtemp
.
bDetSetTemp
==
0.0f
)
{
tempshow
.
SubItems
.
Add
(
globaldata
.
m_dpbuffer
.
ShowList
.
showtemp
.
bDetActualTemp
.
ToString
(
"#0.0
0
"
)
+
" / "
+
"等待读取"
);
tempshow
.
SubItems
.
Add
(
globaldata
.
m_dpbuffer
.
ShowList
.
showtemp
.
bDetActualTemp
.
ToString
(
"#0.0"
)
+
" / "
+
"等待读取"
);
this
.
datalist
.
Items
.
Add
(
tempshow
);
}
else
{
tempshow
.
SubItems
.
Add
(
globaldata
.
m_dpbuffer
.
ShowList
.
showtemp
.
bDetActualTemp
.
ToString
(
"#0.0
0
"
)
+
" / "
+
globaldata
.
m_dpbuffer
.
ShowList
.
showtemp
.
bDetSetTemp
.
ToString
(
"0"
));
tempshow
.
SubItems
.
Add
(
globaldata
.
m_dpbuffer
.
ShowList
.
showtemp
.
bDetActualTemp
.
ToString
(
"#0.0"
)
+
" / "
+
globaldata
.
m_dpbuffer
.
ShowList
.
showtemp
.
bDetSetTemp
.
ToString
(
"0"
));
this
.
datalist
.
Items
.
Add
(
tempshow
);
}
...
...
@@ -318,10 +318,10 @@ namespace GcDevicePc
tempshow
.
Text
=
"未命名"
;
if
(
globaldata
.
m_dpbuffer
.
ShowList
.
showtemp
.
AuxSetTemp1
==
0.0f
)
tempshow
.
SubItems
.
Add
(
globaldata
.
m_dpbuffer
.
ShowList
.
showtemp
.
AuxActualTemp1
.
ToString
(
"#0.0
0
"
)
+
" / "
+
"等待读取"
);
tempshow
.
SubItems
.
Add
(
globaldata
.
m_dpbuffer
.
ShowList
.
showtemp
.
AuxActualTemp1
.
ToString
(
"#0.0"
)
+
" / "
+
"等待读取"
);
else
{
tempshow
.
SubItems
.
Add
(
globaldata
.
m_dpbuffer
.
ShowList
.
showtemp
.
AuxActualTemp1
.
ToString
(
"#0.0
0
"
)
+
" / "
+
globaldata
.
m_dpbuffer
.
ShowList
.
showtemp
.
AuxSetTemp1
.
ToString
(
"0"
));
tempshow
.
SubItems
.
Add
(
globaldata
.
m_dpbuffer
.
ShowList
.
showtemp
.
AuxActualTemp1
.
ToString
(
"#0.0"
)
+
" / "
+
globaldata
.
m_dpbuffer
.
ShowList
.
showtemp
.
AuxSetTemp1
.
ToString
(
"0"
));
this
.
datalist
.
Items
.
Add
(
tempshow
);
}
...
...
@@ -337,10 +337,10 @@ namespace GcDevicePc
tempshow
.
Text
=
"未命名"
;
if
(
globaldata
.
m_dpbuffer
.
ShowList
.
showtemp
.
AuxSetTemp2
==
0.0f
)
tempshow
.
SubItems
.
Add
(
globaldata
.
m_dpbuffer
.
ShowList
.
showtemp
.
AuxActualTemp2
.
ToString
(
"#0.0
0
"
)
+
" / "
+
"等待读取"
);
tempshow
.
SubItems
.
Add
(
globaldata
.
m_dpbuffer
.
ShowList
.
showtemp
.
AuxActualTemp2
.
ToString
(
"#0.0"
)
+
" / "
+
"等待读取"
);
else
{
tempshow
.
SubItems
.
Add
(
globaldata
.
m_dpbuffer
.
ShowList
.
showtemp
.
AuxActualTemp2
.
ToString
(
"#0.0
0
"
)
+
" / "
+
globaldata
.
m_dpbuffer
.
ShowList
.
showtemp
.
AuxSetTemp2
.
ToString
(
"0"
));
tempshow
.
SubItems
.
Add
(
globaldata
.
m_dpbuffer
.
ShowList
.
showtemp
.
AuxActualTemp2
.
ToString
(
"#0.0"
)
+
" / "
+
globaldata
.
m_dpbuffer
.
ShowList
.
showtemp
.
AuxSetTemp2
.
ToString
(
"0"
));
this
.
datalist
.
Items
.
Add
(
tempshow
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment