Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
Thick-Common
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
潘栩锋
Thick-Common
Commits
c56a1e00
Commit
c56a1e00
authored
Aug 24, 2019
by
潘栩锋
🚴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
可以修改数据库地址
parent
b42aa275
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
64 deletions
+24
-64
SysParam.cs
Project.FLY.Thick.Base/FLY.Thick.Base/Server/SysParam.cs
+24
-64
No files found.
Project.FLY.Thick.Base/FLY.Thick.Base/Server/SysParam.cs
View file @
c56a1e00
...
...
@@ -15,70 +15,33 @@ namespace FLY.Thick.Base.Server
public
class
SysParam
:
INotifyPropertyChanged
,
ISaveToXml
{
#
region
属性,成员变量的代理
private
IPEndPoint
m_IPEP_server
=
Misc
.
StringConverter
.
ToIPEndPoint
(
"127.0.0.1:20006"
);
public
IPEndPoint
LocalEP
{
get
{
return
m_IPEP_server
;
}
set
{
m_IPEP_server
=
value
;
NotifyPropertyChanged
(
"LocalEP"
);
}
}
private
IPEndPoint
m_IPEP_flyad7_device
=
Misc
.
StringConverter
.
ToIPEndPoint
(
"192.168.250.10:20006"
);
public
IPEndPoint
FLYAD7EP
{
get
{
return
m_IPEP_flyad7_device
;
}
set
{
if
(
value
==
null
)
return
;
if
(!
m_IPEP_flyad7_device
.
Equals
(
value
))
{
m_IPEP_flyad7_device
=
new
IPEndPoint
(
value
.
Address
,
value
.
Port
);
NotifyPropertyChanged
(
"FLYAD7EP"
);
//Save();
}
}
}
/// <summary>
/// 本机obj服务地址
/// </summary>
[
PropertyChanged
.
DoNotCheckEquality
]
public
IPEndPoint
LocalEP
{
get
;
set
;
}
=
Misc
.
StringConverter
.
ToIPEndPoint
(
"127.0.0.1:20006"
);
private
bool
flyad7_hascrc
=
false
;
public
bool
FLYAD7_HasCRC
{
get
{
return
flyad7_hascrc
;
}
set
{
if
(
flyad7_hascrc
!=
value
)
{
flyad7_hascrc
=
value
;
NotifyPropertyChanged
(
"FLYAD7_HasCRC"
);
}
}
}
/// <summary>
/// AD盒地址
/// </summary>
[
PropertyChanged
.
DoNotCheckEquality
]
public
IPEndPoint
FLYAD7EP
{
get
;
set
;
}
=
Misc
.
StringConverter
.
ToIPEndPoint
(
"192.168.250.10:20006"
);
private
int
flyad7_grid_smooth
=
0
;
/// <summary>
/// AD盒通讯使用 CRC校验
/// </summary>
public
bool
FLYAD7_HasCRC
{
get
;
set
;
}
=
false
;
/// <summary>
/// grid 平滑
/// </summary>
public
int
FLYAD7_GridSmooth
{
get
{
return
flyad7_grid_smooth
;
}
set
{
if
(
flyad7_grid_smooth
!=
value
)
{
flyad7_grid_smooth
=
value
;
NotifyPropertyChanged
(
"FLYAD7_GridSmooth"
);
}
}
}
public
int
FLYAD7_GridSmooth
{
get
;
set
;
}
=
0
;
/// <summary>
/// 数据库地址,只读,界面没法修改
/// </summary>
public
string
DBPath
{
get
;
set
;
}
=
@"D:\flydata\thick_history.sqlite3"
;
#
endregion
private
string
param_path
=
"sysparam.xml"
;
...
...
@@ -122,11 +85,7 @@ namespace FLY.Thick.Base.Server
#
region
INotifyPropertyChanged
成员
public
event
PropertyChangedEventHandler
PropertyChanged
;
protected
void
NotifyPropertyChanged
(
string
propertyName
)
{
if
(
this
.
PropertyChanged
!=
null
)
this
.
PropertyChanged
.
Invoke
(
this
,
new
PropertyChangedEventArgs
(
propertyName
));
}
#
endregion
public
string
[]
GetSavePropertyNames
()
...
...
@@ -135,7 +94,8 @@ namespace FLY.Thick.Base.Server
"LocalEP"
,
"FLYAD7EP"
,
"FLYAD7_HasCRC"
,
"FLYAD7_GridSmooth"
"FLYAD7_GridSmooth"
,
"DBPath"
};
}
}
...
...
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