/// <summary> /// Adds a JobPanel for each job created. /// </summary> private void onJobCreated(Guid pJobID) { FireEvents.Invoke(this, ()=> { PanelJob panelJob = new PanelJob(pJobID); Add(panelJob); }); }
/// <summary> /// Adds a logger to the UI. Giving that log it's own tab. /// </summary> private void Add(PanelJob pPanel) { string id = pPanel.getJobID().ToString(); tabs.TabPages.Add(id, pPanel.getTitle()); tabs.TabPages[id].Controls.Add(pPanel); }