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
420c8b13
Commit
420c8b13
authored
Nov 14, 2019
by
潘栩锋
🚴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
模拟HMI Property 整理
parent
d3604d26
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
67 deletions
+6
-67
HMI.cs
Project.FLY.FlyADBase/FLY.Simulation.Blowing/HMI.cs
+6
-67
No files found.
Project.FLY.FlyADBase/FLY.Simulation.Blowing/HMI.cs
View file @
420c8b13
...
...
@@ -19,75 +19,20 @@ namespace FLY.Simulation.Blowing
const
UInt16
ADDR_D_Heats
=
100
;
const
UInt16
ADDR_D_Currs
=
300
;
public
UInt16
HeatUpdate
{
get
{
return
heatupdate
;
}
set
{
if
(
heatupdate
!=
value
)
{
heatupdate
=
value
;
NotifyPropertyChanged
(
"HeatUpdate"
);
}
}
}
public
UInt16
CurrUpdate
{
get
{
return
currupdate
;
}
set
{
if
(
currupdate
!=
value
)
{
currupdate
=
value
;
NotifyPropertyChanged
(
"CurrUpdate"
);
}
}
}
public
UInt16
HeatUpdate
{
get
;
set
;
}
public
UInt16
CurrUpdate
{
get
;
set
;
}
bool
hasElectric
=
false
;
/// <summary>
/// 当前电流 有没?
/// </summary>
public
bool
HasElectricCurrent
{
get
{
return
hasElectric
;
}
set
{
if
(
hasElectric
!=
value
)
{
hasElectric
=
value
;
NotifyPropertyChanged
(
"HasElectricCurrent"
);
}
}
}
public
bool
HasElectricCurrent
{
get
;
set
;
}
bool
hasfan
=
true
;
/// <summary>
/// 风机是否启动?
/// </summary>
public
bool
HasFan
{
get
{
return
hasfan
;
}
set
{
if
(
hasfan
!=
value
)
{
hasfan
=
value
;
NotifyPropertyChanged
(
"HasFan"
);
}
}
}
public
bool
HasFan
{
get
;
set
;
}
=
true
;
UInt16
heatupdate
=
1
;
UInt16
currupdate
=
1
;
...
...
@@ -205,13 +150,7 @@ namespace FLY.Simulation.Blowing
}
SendStatue
();
}
protected
void
NotifyPropertyChanged
(
string
propertyname
)
{
if
(
PropertyChanged
!=
null
)
{
PropertyChanged
.
Invoke
(
this
,
new
PropertyChangedEventArgs
(
propertyname
));
}
}
public
event
PropertyChangedEventHandler
PropertyChanged
;
}
}
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