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
...
@@ -19,75 +19,20 @@ namespace FLY.Simulation.Blowing
const
UInt16
ADDR_D_Heats
=
100
;
const
UInt16
ADDR_D_Heats
=
100
;
const
UInt16
ADDR_D_Currs
=
300
;
const
UInt16
ADDR_D_Currs
=
300
;
public
UInt16
HeatUpdate
public
UInt16
HeatUpdate
{
get
;
set
;
}
{
get
{
public
UInt16
CurrUpdate
{
get
;
set
;
}
return
heatupdate
;
}
set
{
if
(
heatupdate
!=
value
)
{
heatupdate
=
value
;
NotifyPropertyChanged
(
"HeatUpdate"
);
}
}
}
public
UInt16
CurrUpdate
{
get
{
return
currupdate
;
}
set
{
if
(
currupdate
!=
value
)
{
currupdate
=
value
;
NotifyPropertyChanged
(
"CurrUpdate"
);
}
}
}
bool
hasElectric
=
false
;
/// <summary>
/// <summary>
/// 当前电流 有没?
/// 当前电流 有没?
/// </summary>
/// </summary>
public
bool
HasElectricCurrent
public
bool
HasElectricCurrent
{
get
;
set
;
}
{
get
{
return
hasElectric
;
}
set
{
if
(
hasElectric
!=
value
)
{
hasElectric
=
value
;
NotifyPropertyChanged
(
"HasElectricCurrent"
);
}
}
}
bool
hasfan
=
true
;
/// <summary>
/// <summary>
/// 风机是否启动?
/// 风机是否启动?
/// </summary>
/// </summary>
public
bool
HasFan
public
bool
HasFan
{
get
;
set
;
}
=
true
;
{
get
{
return
hasfan
;
}
set
{
if
(
hasfan
!=
value
)
{
hasfan
=
value
;
NotifyPropertyChanged
(
"HasFan"
);
}
}
}
UInt16
heatupdate
=
1
;
UInt16
heatupdate
=
1
;
UInt16
currupdate
=
1
;
UInt16
currupdate
=
1
;
...
@@ -205,13 +150,7 @@ namespace FLY.Simulation.Blowing
...
@@ -205,13 +150,7 @@ namespace FLY.Simulation.Blowing
}
}
SendStatue
();
SendStatue
();
}
}
protected
void
NotifyPropertyChanged
(
string
propertyname
)
{
if
(
PropertyChanged
!=
null
)
{
PropertyChanged
.
Invoke
(
this
,
new
PropertyChangedEventArgs
(
propertyname
));
}
}
public
event
PropertyChangedEventHandler
PropertyChanged
;
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