我有这样的法典:
private void Window_Loaded(object sender, RoutedEventArgs e) {
........
List<ConsoleData> datas = new List<ConsoleData>();
foreach (StrategyDescriptor sd in pipeProxy.GetStrategies())
{
datas.Add(pipeProxy.GetData(sd.Id));
}
dataGrid1.ItemsSource = datas;
}
the problem is that dataGrid is never updated. I would like to update it every second or so.
我对世界森林论坛非常乐观,对该问题感到担忧——如何做到这一点? 我是否应当创造时间,或者是否有更好的技术?