private void UpdateStatistics() { var statistics = _callTasksVm.GetStatistics(_callTasksVm.Filter.Employee); hboxStatistics.Children.OfType <Widget>().ToList().ForEach(x => x.Destroy()); foreach (var stats in statistics.Select(item => new Label(item.Key + item.Value))) { hboxStatistics.Add(stats); stats.Show(); var sep = new VSeparator(); hboxStatistics.Add(sep); sep.Show(); } }
public void UpdateStatistics() { var statistics = callTasksVM.GetStatistics(callTasksVM.Filter.Employee); hboxStatistics.Children.OfType <Widget>().ToList().ForEach(x => x.Destroy()); foreach (var item in statistics) { var stats = new Label(item.Key + item.Value); hboxStatistics.Add(stats); stats.Show(); var sep = new VSeparator(); hboxStatistics.Add(sep); sep.Show(); } }