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
Show 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
...
@@ -15,70 +15,33 @@ namespace FLY.Thick.Base.Server
public
class
SysParam
:
INotifyPropertyChanged
,
ISaveToXml
public
class
SysParam
:
INotifyPropertyChanged
,
ISaveToXml
{
{
#
region
属性,成员变量的代理
#
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"
);
/// <summary>
public
IPEndPoint
FLYAD7EP
/// 本机obj服务地址
{
/// </summary>
get
[
PropertyChanged
.
DoNotCheckEquality
]
{
public
IPEndPoint
LocalEP
{
get
;
set
;
}
=
Misc
.
StringConverter
.
ToIPEndPoint
(
"127.0.0.1:20006"
);
return
m_IPEP_flyad7_device
;
}
set
{
if
(
value
==
null
)
return
;
if
(!
m_IPEP_flyad7_device
.
Equals
(
value
))
/// <summary>
{
/// AD盒地址
m_IPEP_flyad7_device
=
new
IPEndPoint
(
value
.
Address
,
value
.
Port
);
/// </summary>
NotifyPropertyChanged
(
"FLYAD7EP"
);
[
PropertyChanged
.
DoNotCheckEquality
]
//Save();
public
IPEndPoint
FLYAD7EP
{
get
;
set
;
}
=
Misc
.
StringConverter
.
ToIPEndPoint
(
"192.168.250.10:20006"
);
}
}
}
private
bool
flyad7_hascrc
=
false
;
/// <summary>
public
bool
FLYAD7_HasCRC
/// AD盒通讯使用 CRC校验
{
/// </summary>
get
{
return
flyad7_hascrc
;
}
public
bool
FLYAD7_HasCRC
{
get
;
set
;
}
=
false
;
set
{
if
(
flyad7_hascrc
!=
value
)
{
flyad7_hascrc
=
value
;
NotifyPropertyChanged
(
"FLYAD7_HasCRC"
);
}
}
}
private
int
flyad7_grid_smooth
=
0
;
/// <summary>
/// <summary>
/// grid 平滑
/// grid 平滑
/// </summary>
/// </summary>
public
int
FLYAD7_GridSmooth
public
int
FLYAD7_GridSmooth
{
get
;
set
;
}
=
0
;
{
get
{
return
flyad7_grid_smooth
;
}
/// <summary>
set
/// 数据库地址,只读,界面没法修改
{
/// </summary>
if
(
flyad7_grid_smooth
!=
value
)
public
string
DBPath
{
get
;
set
;
}
=
@"D:\flydata\thick_history.sqlite3"
;
{
flyad7_grid_smooth
=
value
;
NotifyPropertyChanged
(
"FLYAD7_GridSmooth"
);
}
}
}
#
endregion
#
endregion
private
string
param_path
=
"sysparam.xml"
;
private
string
param_path
=
"sysparam.xml"
;
...
@@ -122,11 +85,7 @@ namespace FLY.Thick.Base.Server
...
@@ -122,11 +85,7 @@ namespace FLY.Thick.Base.Server
#
region
INotifyPropertyChanged
成员
#
region
INotifyPropertyChanged
成员
public
event
PropertyChangedEventHandler
PropertyChanged
;
public
event
PropertyChangedEventHandler
PropertyChanged
;
protected
void
NotifyPropertyChanged
(
string
propertyName
)
{
if
(
this
.
PropertyChanged
!=
null
)
this
.
PropertyChanged
.
Invoke
(
this
,
new
PropertyChangedEventArgs
(
propertyName
));
}
#
endregion
#
endregion
public
string
[]
GetSavePropertyNames
()
public
string
[]
GetSavePropertyNames
()
...
@@ -135,7 +94,8 @@ namespace FLY.Thick.Base.Server
...
@@ -135,7 +94,8 @@ namespace FLY.Thick.Base.Server
"LocalEP"
,
"LocalEP"
,
"FLYAD7EP"
,
"FLYAD7EP"
,
"FLYAD7_HasCRC"
,
"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