|
@@ -54,7 +54,7 @@ namespace MECF.Framework.Simulator.Core.Commons
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- private int maxItemNumber = 200;
|
|
|
+ private int maxItemNumber = 50;
|
|
|
public string LocalPortSetPoint { get; set; }
|
|
|
|
|
|
public ObservableCollection<TransactionLogItem> TransactionLogItems { get; set; }
|
|
@@ -111,7 +111,7 @@ namespace MECF.Framework.Simulator.Core.Commons
|
|
|
if (TransactionLogItems.Count > maxItemNumber)
|
|
|
//TransactionLogItems = new ObservableCollection<TransactionLogItem>(TransactionLogItems.Skip(1).Take(maxItemNumber).ToList());
|
|
|
TransactionLogItems.Clear();
|
|
|
- Poll();
|
|
|
+ InvokeAllPropertyChanged();
|
|
|
}));
|
|
|
}
|
|
|
|
|
@@ -123,19 +123,13 @@ namespace MECF.Framework.Simulator.Core.Commons
|
|
|
if (TransactionLogItems.Count > maxItemNumber)
|
|
|
//TransactionLogItems = new ObservableCollection<TransactionLogItem>(TransactionLogItems.Skip(1).Take(maxItemNumber).ToList());
|
|
|
TransactionLogItems.Clear();
|
|
|
- Poll();
|
|
|
+ InvokeAllPropertyChanged();
|
|
|
}));
|
|
|
}
|
|
|
|
|
|
protected override void Poll()
|
|
|
{
|
|
|
- Application.Current.Dispatcher.Invoke(new Action(() =>
|
|
|
- {
|
|
|
-
|
|
|
-
|
|
|
- InvokeAllPropertyChanged();
|
|
|
-
|
|
|
- }));
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
}
|