void AddView(QueueItem item) { QueueItemView view = new QueueItemView(); ResizeView(view); uiItems.Controls.Add(view); view.Initialize(item); uiItems.ScrollControlIntoView(view); }
void ResizeView(QueueItemView v) { v.Width = Width - 30; v.SetTitleWidth(Width - 80); }