using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using WeifenLuo.WinFormsUI.Docking; namespace Voile.DockContents { public partial class DockTaskList : DockContent { public DockTaskList() { InitializeComponent(); imageList1.Images.Add(Voile.Properties.Resources.hourglass); imageList1.Images.Add(Voile.Properties.Resources.hourglass_go); imageList1.Images.Add(Voile.Properties.Resources.hourglass_link); } private void listView1_SelectedIndexChanged(object sender, EventArgs e) { } private void DockTaskList_Resize(object sender, EventArgs e) { listView1.Columns[0].Width = listView1.Width; } internal VoileTask AddTask(string name, VoileRunnable runnable = null) { VoileTask vt = new VoileTask(name, runnable); listView1.Items.Add(vt); return vt; } } }