public void Add(JobWorker w) { IndividualWorkerSummary i = new IndividualWorkerSummary(); i.Worker = w; i.Dock = DockStyle.Bottom; panel1.Controls.Add(i); displays[w.Name] = i; RefreshInfo(); }
public void Add(JobWorker w) { IndividualWorkerSummary i = new IndividualWorkerSummary(); i.Worker = w; i.Dock = DockStyle.Bottom; Util.ThreadSafeRun(panel1, delegate { panel1.Controls.Add(i); }); displays[w.Name] = i; RefreshInfo(); }