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
ab2ec805
Commit
ab2ec805
authored
Dec 25, 2018
by
潘栩锋
🚴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.改进 IBC控制图, 更新时序
parent
01eb94dd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
IBCCtrlGraph.xaml.cs
...t.FLY.IBC/FLY.IBC.UI.Client/UIModule/IBCCtrlGraph.xaml.cs
+9
-2
No files found.
Project.FLY.IBC/FLY.IBC.UI.Client/UIModule/IBCCtrlGraph.xaml.cs
View file @
ab2ec805
...
...
@@ -69,6 +69,7 @@ namespace FLY.IBC.UI.Client.UIModule
}
public
class
IBCCtrlGraphModelView
:
INotifyPropertyChanged
{
const
int
MARKNO_TOVALUES
=
1
;
/// <summary>
/// 当前现在不是最新,而且没有移动动作,20秒自动按 Newest()
/// </summary>
...
...
@@ -169,11 +170,13 @@ namespace FLY.IBC.UI.Client.UIModule
else
{
Values
.
Clear
();
List
<
FlyData_IBCCtrl
>
record
=
new
List
<
FlyData_IBCCtrl
>();
for
(
int
i
=
0
;
i
<
ValuesCap
;
i
++)
{
int
idx
=
i
*
bufferWindow
.
Record
.
Count
/
ValuesCap
;
Values
.
Add
(
bufferWindow
.
Record
[
idx
]);
record
.
Add
(
bufferWindow
.
Record
[
idx
]);
}
Values
.
AddRange
(
record
);
}
if
(
Values
.
Count
()
>
0
)
{
...
...
@@ -214,8 +217,12 @@ namespace FLY.IBC.UI.Client.UIModule
Misc
.
BindingOperations
.
SetBinding
(
graphParams
,
"WindowSize"
,
bufferWindow
,
"Size"
);
bufferWindow
.
Record
.
CollectionChanged
+=
(
object
sender
,
System
.
Collections
.
Specialized
.
NotifyCollectionChangedEventArgs
e
)
=>
{
FObjBase
.
PollModule
.
Current
.
Poll_JustOnce
(
()
=>
{
ToValues
();
},
this
,
MARKNO_TOVALUES
);
};
Misc
.
BindingOperations
.
SetBinding
(
iBCSystemClient
.
Item
,
"FilmWidthSet"
,
this
,
"FilmWidthAxisYTarget"
);
...
...
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