Example #1
0
        void queue_Changed(TaskQueue.Task Task)
        {
            listBox1.Items.Add(Task.ToString());
            listBox1.ScrollIntoView(listBox1.Items[listBox1.Items.Count - 1]);

            //foreach (object o in queue.Items)
            //{
            //    IDataObject ob = (IDataObject)o;
            //    if (ob.GetData(System.Windows.DataFormats.StringFormat) == null)
            //    {
            //        object[] files = (object[])ob.GetData(System.Windows.DataFormats.FileDrop);
            //        foreach (string f in files)
            //        {
            //            listBox1.Items.Add(f.ToString());
            //        }
            //    }
            //    else
            //        listBox1.Items.Add(ob.GetData(System.Windows.DataFormats.StringFormat));
            //}
            //listBox1.ScrollIntoView(listBox1.Items[listBox1.Items.Count - 1]);
        }
Example #2
0
 public DropArea(TaskQueue q)
 {
     InitializeComponent();
     icon = null;
     queue = q;
 }
Example #3
0
 public DropArea(TaskQueue q, Hardcodet.Wpf.TaskbarNotification.TaskbarIcon Icon)
 {
     InitializeComponent();
     icon = Icon;
     queue = q;
 }