public void UpdateWachtrij(Wachtrij wachtrij, StackPanel stackPanel) { stackPanel.Children.Clear(); foreach (Sporter sporter in wachtrij.GetAlleSporters()) { TextBlock tb = new TextBlock(); tb.Background = GetSporterBackgroundColor(sporter); tb.Text = $"Sporter {sporter.Id}"; stackPanel.Children.Add(tb); } }
public void UpdateWachtrijLabel(Wachtrij wachtrij, Label label) { label.Content = $"{nameof(wachtrij)} ({wachtrij.GetAlleSporters().Count})"; }