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
ae1b83d2
Commit
ae1b83d2
authored
Mar 07, 2019
by
潘栩锋
🚴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1. 修改 property 的 {get;set;}
parent
4032422a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
88 additions
and
407 deletions
+88
-407
HeatBuf.cs
...Y.FeedbackRenZiJia/FLY.FeedbackRenZiJia/Server/HeatBuf.cs
+66
-336
HeatCell.cs
....FeedbackRenZiJia/FLY.FeedbackRenZiJia/Server/HeatCell.cs
+17
-52
HeatChanged.cs
...edbackRenZiJia/FLY.FeedbackRenZiJia/Server/HeatChanged.cs
+3
-19
HeatCheck.cs
...FeedbackRenZiJia/FLY.FeedbackRenZiJia/Server/HeatCheck.cs
+2
-0
No files found.
Project.FLY.FeedbackRenZiJia/FLY.FeedbackRenZiJia/Server/HeatBuf.cs
View file @
ae1b83d2
This diff is collapsed.
Click to expand it.
Project.FLY.FeedbackRenZiJia/FLY.FeedbackRenZiJia/Server/HeatCell.cs
View file @
ae1b83d2
...
@@ -7,6 +7,7 @@ using System.Collections.ObjectModel;
...
@@ -7,6 +7,7 @@ using System.Collections.ObjectModel;
using
System.ComponentModel
;
using
System.ComponentModel
;
using
FLY.FeedbackRenZiJia.Common
;
using
FLY.FeedbackRenZiJia.Common
;
using
FLY.FeedbackRenZiJia.IService
;
using
FLY.FeedbackRenZiJia.IService
;
using
PropertyChanged
;
namespace
FLY.FeedbackRenZiJia.Server
namespace
FLY.FeedbackRenZiJia.Server
{
{
...
@@ -62,77 +63,41 @@ namespace FLY.FeedbackRenZiJia.Server
...
@@ -62,77 +63,41 @@ namespace FLY.FeedbackRenZiJia.Server
#
endregion
#
endregion
#
region
状态
#
region
状态
int
[]
thickpercents
;
/// <summary>
/// <summary>
/// 对应的100% 数据,单位是% 数量是BoltCnt, 数据肯定是完整的!!!!!
/// 对应的100% 数据,单位是% 数量是BoltCnt, 数据肯定是完整的!!!!!
/// </summary>
/// </summary>
public
int
[]
ThickPercents
[
DoNotCheckEquality
]
{
public
int
[]
ThickPercents
{
get
;
set
;
}
get
{
return
thickpercents
;
}
set
{
thickpercents
=
value
;
NotifyPropertyChanged
(
"ThickPercents"
);
}
}
int
[]
heats
;
/// <summary>
/// <summary>
/// 当前方向的加热策略,必须保证 0~100
/// 当前方向的加热策略,必须保证 0~100
/// </summary>
/// </summary>
public
int
[]
Heats
[
DoNotCheckEquality
]
{
public
int
[]
Heats
{
get
;
protected
set
;
}
get
{
return
heats
;
}
protected
set
{
heats
=
value
;
NotifyPropertyChanged
(
"Heats"
);
}
}
private
int
Base
{
get
;
set
;
}
=
0
;
private
int
Base
{
get
;
set
;
}
=
0
;
int
[]
offsets
;
/// <summary>
/// <summary>
/// 加热偏移量
/// 加热偏移量
/// </summary>
/// </summary>
public
int
[]
Offsets
[
DoNotCheckEquality
]
{
public
int
[]
Offsets
{
get
;
protected
set
;
}
get
{
return
offsets
;
}
protected
set
{
offsets
=
value
;
NotifyPropertyChanged
(
"Offsets"
);
}
}
int
[]
preheats
;
/// <summary>
/// <summary>
/// Heats+Offsets+Base
/// Heats+Offsets+Base
/// </summary>
/// </summary>
public
int
[]
PreHeats
[
DoNotCheckEquality
]
{
public
int
[]
PreHeats
{
get
;
protected
set
;
}
get
{
return
preheats
;
}
protected
set
{
preheats
=
value
;
NotifyPropertyChanged
(
"PreHeats"
);
}
}
/// <summary>
/// <summary>
/// 加热量 每3个计算的sigma,最大值
/// 加热量 每3个计算的sigma,最大值
...
...
Project.FLY.FeedbackRenZiJia/FLY.FeedbackRenZiJia/Server/HeatChanged.cs
View file @
ae1b83d2
...
@@ -26,18 +26,8 @@ namespace FLY.FeedbackRenZiJia.Server
...
@@ -26,18 +26,8 @@ namespace FLY.FeedbackRenZiJia.Server
public
int
[]
Heats
;
//加热
public
int
[]
Heats
;
//加热
}
}
DateTime
last
=
DateTime
.
MinValue
;
public
DateTime
Last
public
DateTime
Last
{
get
;
set
;
}
=
DateTime
.
MinValue
;
{
get
{
return
last
;
}
set
{
if
(
last
!=
value
)
{
last
=
value
;
NotifyPropertyChanged
(
"Last"
);
}
}
}
/// <summary>
/// <summary>
...
@@ -120,13 +110,7 @@ namespace FLY.FeedbackRenZiJia.Server
...
@@ -120,13 +110,7 @@ namespace FLY.FeedbackRenZiJia.Server
#
region
INotifyPropertyChanged
成员
#
region
INotifyPropertyChanged
成员
public
event
PropertyChangedEventHandler
PropertyChanged
;
public
event
PropertyChangedEventHandler
PropertyChanged
;
protected
void
NotifyPropertyChanged
(
string
propertyname
)
{
if
(
PropertyChanged
!=
null
)
{
PropertyChanged
.
Invoke
(
this
,
new
PropertyChangedEventArgs
(
propertyname
));
}
}
#
endregion
#
endregion
}
}
}
}
Project.FLY.FeedbackRenZiJia/FLY.FeedbackRenZiJia/Server/HeatCheck.cs
View file @
ae1b83d2
...
@@ -6,6 +6,7 @@ using System.Collections.ObjectModel;
...
@@ -6,6 +6,7 @@ using System.Collections.ObjectModel;
using
System.ComponentModel
;
using
System.ComponentModel
;
using
FLY.FeedbackRenZiJia.IService
;
using
FLY.FeedbackRenZiJia.IService
;
using
FLY.FeedbackRenZiJia.Common
;
using
FLY.FeedbackRenZiJia.Common
;
using
PropertyChanged
;
namespace
FLY.FeedbackRenZiJia.Server
namespace
FLY.FeedbackRenZiJia.Server
{
{
...
@@ -75,6 +76,7 @@ namespace FLY.FeedbackRenZiJia.Server
...
@@ -75,6 +76,7 @@ namespace FLY.FeedbackRenZiJia.Server
/// <summary>
/// <summary>
/// 坏的加热棒
/// 坏的加热棒
/// </summary>
/// </summary>
[
DoNotCheckEquality
]
public
bool
[]
Bads
{
get
;
set
;
}
public
bool
[]
Bads
{
get
;
set
;
}
...
...
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