public static void Remove(WorkerTask task) { if (task != null) { task.Stop(); Tasks.Remove(task); UpdateMainFormTip(); TaskListView.RemoveItem(task); TaskThumbnailView.RemovePanel(task); task.Dispose(); } }
public static void Remove(WorkerTask task) { if (task != null) { task.Stop(); Tasks.Remove(task); ListViewItem lvi = FindListViewItem(task); if (lvi != null) { ListViewControl.Items.Remove(lvi); } task.Dispose(); } }
public static void Remove(WorkerTask task) { if (task != null) { task.Stop(); Tasks.Remove(task); UpdateMainFormTip(); ListViewItem lvi = FindListViewItem(task); if (lvi != null) { ListViewControl.Items.Remove(lvi); } task.Dispose(); } }