public void AddItem(ProgressItem _newItem) { if (_newItem != null) { _listItem.Add(_newItem.job, _newItem); ListViewItem.ListViewSubItem subItem = null; ListViewItem lvi = _lvProgress.Items.Add(_newItem.job); lvi.ImageIndex = 0; subItem = lvi.SubItems.Add(_newItem.job + "@ProgressBar"); _lvProgress.AddEmbeddedControl(subItem, _newItem.ProgressBarControl); } }
public void AddItem(ProgressItem _newItem) { if (_newItem != null) { _listItem.Add(_newItem.job,_newItem); ListViewItem.ListViewSubItem subItem = null; ListViewItem lvi =_lvProgress.Items.Add(_newItem.job); lvi.ImageIndex = 0; subItem = lvi.SubItems.Add(_newItem.job+"@ProgressBar"); _lvProgress.AddEmbeddedControl(subItem, _newItem.ProgressBarControl); } }
/// <summary> /// Add a new item in the list view of the progress page control /// </summary> /// <param name="_newItem">new item</param> public static void AddElementProgress(ProgressItem _newItem) { _mainForm.PProgress.AddItem(_newItem); }