Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hemei
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
潘栩锋
hemei
Commits
107d8129
Commit
107d8129
authored
Dec 18, 2018
by
潘栩锋
🚴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改, MainWindow 忘记了添加mSysParam_PropertyChanged
parent
7d4961bb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
42 deletions
+17
-42
PropertiesManager.cs
...Y.OBJComponents/OBJComponents/Common/PropertiesManager.cs
+9
-1
SysParam.cs
Project.FLY.Thick.Base/FLY.Thick.Base.UI/SysParam.cs
+6
-40
MainWindow.xaml.cs
...lowing/FLY.Thick.Blowing.UI.Fix.Client/MainWindow.xaml.cs
+2
-1
No files found.
Project.FLY.OBJComponents/OBJComponents/Common/PropertiesManager.cs
View file @
107d8129
...
...
@@ -16,7 +16,15 @@ namespace FLY.OBJComponents.Common
/// <param name="val">属性值</param>
public
static
void
SetValue
(
object
obj
,
string
propertyName
,
object
v
)
{
PropertyInfo
property
=
obj
.
GetType
().
GetProperties
().
First
(
p
=>
{
return
p
.
Name
==
propertyName
;
});
PropertyInfo
property
;
try
{
property
=
obj
.
GetType
().
GetProperty
(
propertyName
);
}
catch
(
Exception
e
)
{
throw
new
Exception
(
"PropertiesManager_JSON 类型="
+
obj
.
GetType
().
ToString
()+
" 不能找到 属性名="
+
propertyName
,
e
);
}
if
(
property
!=
null
)
{
if
(
v
.
GetType
()
==
property
.
PropertyType
)
...
...
Project.FLY.Thick.Base/FLY.Thick.Base.UI/SysParam.cs
View file @
107d8129
...
...
@@ -63,56 +63,22 @@ namespace ThickTcpUiInWindow
}
}
}
string
warningTipPath
;
/// <summary>
/// 报警音乐路径
/// </summary>
public
string
WarningTipPath
{
get
{
return
warningTipPath
;
}
set
{
if
(
warningTipPath
!=
value
)
{
warningTipPath
=
value
;
NotifyPropertyChanged
(
"WarningTipPath"
);
}
}
}
public
string
WarningTipPath
{
get
;
set
;
}
bool
haveosk
=
false
;
/// <summary>
/// 使用虚拟键盘
/// </summary>
public
virtual
bool
HaveOSK
{
get
{
return
haveosk
;
}
set
{
if
(
haveosk
!=
value
)
{
haveosk
=
value
;
NotifyPropertyChanged
(
"HaveOSK"
);
}
}
}
bool
haveosk_mouse
=
false
;
public
bool
HaveOSK
{
get
;
set
;
}
/// <summary>
/// 虚拟键盘支持鼠标
/// </summary>
public
virtual
bool
HaveOSK_mouse
{
get
{
return
haveosk_mouse
;
}
set
{
if
(
haveosk_mouse
!=
value
)
{
haveosk_mouse
=
value
;
NotifyPropertyChanged
(
"HaveOSK_mouse"
);
}
}
}
public
virtual
bool
HaveOSK_mouse
{
get
;
set
;
}
#
endregion
/// <summary>
///
...
...
Project.FLY.Thick.Blowing/FLY.Thick.Blowing.UI.Fix.Client/MainWindow.xaml.cs
View file @
107d8129
...
...
@@ -132,9 +132,10 @@ namespace FLY.Thick.Blowing.UI.Fix.Client
{
gage
=
new
TDGage
();
gage
.
mSysParam
.
Load
();
//
gage.mSysParam.PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(mSysParam_PropertyChanged);
gage
.
mSysParam
.
PropertyChanged
+=
new
System
.
ComponentModel
.
PropertyChangedEventHandler
(
mSysParam_PropertyChanged
);
FLY
.
UI
.
OSK
.
KeyboardBehavior
.
Enable
=
gage
.
mSysParam
.
HaveOSK
;
FLY
.
UI
.
OSK
.
KeyboardBehavior
.
EnableMouseDown
=
gage
.
mSysParam
.
HaveOSK_mouse
;
UpdateCulture
();
...
...
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