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
51461f48
Commit
51461f48
authored
Jul 05, 2018
by
wangwanxh@sina.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'wang_master' of
https://gitee.com/wangwanxh/Vocs
into wang_master
parents
7246580a
fb48713f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
AppInit.cs
GcDevicePc/AppInit.cs
+13
-1
No files found.
GcDevicePc/AppInit.cs
View file @
51461f48
...
@@ -107,6 +107,18 @@ namespace GcDevicePc
...
@@ -107,6 +107,18 @@ namespace GcDevicePc
if
(!
String
.
IsNullOrEmpty
(
globaldata
.
connection_ip
))
if
(!
String
.
IsNullOrEmpty
(
globaldata
.
connection_ip
))
{
{
String
checkfile
=
Path
.
Combine
(
globaldata
.
m_pcbuffer
.
gcpcinfo
.
pcfolderinfo
.
StatusFolder
,
"DevStatus.ini"
);
if
(
File
.
Exists
(
checkfile
))
{
IniParser
=
new
IniFile
(
checkfile
);
if
(!
IniParser
.
KeyExists
(
"仪器编号"
,
"仪器编码"
)
&&
!
IniParser
.
KeyExists
(
"仪器编号"
,
"仪器名称"
))
{
File
.
Delete
(
Path
.
Combine
(
globaldata
.
m_pcbuffer
.
gcpcinfo
.
pcfolderinfo
.
StatusFolder
,
"DevStatus.ini"
));
}
}
FileTools
filecheck
=
new
FileTools
();
FileTools
filecheck
=
new
FileTools
();
FileServerClient
mainclient
=
new
FileServerClient
();
FileServerClient
mainclient
=
new
FileServerClient
();
mainclient
.
WtClientInit
(
globaldata
.
connection_ip
,
globaldata
.
fileserverport
);
mainclient
.
WtClientInit
(
globaldata
.
connection_ip
,
globaldata
.
fileserverport
);
...
@@ -165,7 +177,7 @@ namespace GcDevicePc
...
@@ -165,7 +177,7 @@ namespace GcDevicePc
if
(
File
.
Exists
(
tmpfile
)
==
false
)
if
(
File
.
Exists
(
tmpfile
)
==
false
)
{
{
HWConfig
default_devstatus
=
new
HWConfig
(
globaldata
.
m_pcbuffer
.
gcpcinfo
.
pcfolderinfo
.
StatusFolder
,
"DevStatus.ini"
);
HWConfig
default_devstatus
=
new
HWConfig
(
globaldata
.
m_pcbuffer
.
gcpcinfo
.
pcfolderinfo
.
StatusFolder
,
"DevStatus.ini"
);
default_devstatus
.
SavaHWConfig
();
//
default_devstatus.SavaHWConfig();
}
}
else
else
{
{
...
...
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