Commit ab2ec805 authored by 潘栩锋's avatar 潘栩锋 🚴

1.改进 IBC控制图, 更新时序

parent 01eb94dd
......@@ -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)
{
......@@ -215,7 +218,11 @@ namespace FLY.IBC.UI.Client.UIModule
bufferWindow.Record.CollectionChanged += (object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e) =>
{
ToValues();
FObjBase.PollModule.Current.Poll_JustOnce(
() =>
{
ToValues();
}, this, MARKNO_TOVALUES);
};
Misc.BindingOperations.SetBinding(iBCSystemClient.Item, "FilmWidthSet", this, "FilmWidthAxisYTarget");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment