public void UpdateProgressVisible(WorkerTask task, bool visible) { TaskPanel panel = FindPanel(task); if (panel != null) { panel.ProgressVisible = visible; } }
public void RemoveTaskPanel(WorkerTask task) { TaskPanel panel = FindPanel(task); if (panel != null) { TaskPanels.Remove(panel); flpMain.Controls.Remove(panel); panel.Dispose(); } }
public void AddTaskPanel(WorkerTask task) { TaskPanel panel = new TaskPanel(task); panel.ChangeThumbnailSize(ThumbnailSize); panel.MouseDown += (sender, e) => SelectedTaskPanel = panel; panel.MouseUp += Panel_MouseUp; TaskPanels.Add(panel); flpMain.Controls.Add(panel); flpMain.Controls.SetChildIndex(panel, 0); }
private void FlpMain_MouseDown(object sender, MouseEventArgs e) { SelectedTaskPanel = null; }