示例#1
0
        public void UpdateProgressVisible(WorkerTask task, bool visible)
        {
            TaskPanel panel = FindPanel(task);

            if (panel != null)
            {
                panel.ProgressVisible = visible;
            }
        }
示例#2
0
        public void RemoveTaskPanel(WorkerTask task)
        {
            TaskPanel panel = FindPanel(task);

            if (panel != null)
            {
                TaskPanels.Remove(panel);
                flpMain.Controls.Remove(panel);
                panel.Dispose();
            }
        }
示例#3
0
        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);
        }
示例#4
0
 private void FlpMain_MouseDown(object sender, MouseEventArgs e)
 {
     SelectedTaskPanel = null;
 }