Esempio n. 1
0
 protected override void OnShown(EventArgs e)
 {
     this.taskViewItems = new Dictionary <CompressorTaskItem, CompressorTaskViewItem>();
     this.ltvTasks.BeginUpdate();
     this.ltvTasks.Items.Clear();
     foreach (CompressorTaskItem key in this.taskItems)
     {
         CompressorTaskViewItem compressorTaskViewItem = new CompressorTaskViewItem(key);
         this.taskViewItems.Add(key, compressorTaskViewItem);
         this.ltvTasks.Items.Add((ListViewItem)compressorTaskViewItem);
     }
     this.ltvTasks.EndUpdate();
     ThreadPool.QueueUserWorkItem(new WaitCallback(this.Do));
     base.OnShown(e);
 }
Esempio n. 2
0
 protected override void OnShown(EventArgs e)
 {
   this.taskViewItems = new Dictionary<CompressorTaskItem, CompressorTaskViewItem>();
   this.ltvTasks.BeginUpdate();
   this.ltvTasks.Items.Clear();
   foreach (CompressorTaskItem key in this.taskItems)
   {
     CompressorTaskViewItem compressorTaskViewItem = new CompressorTaskViewItem(key);
     this.taskViewItems.Add(key, compressorTaskViewItem);
     this.ltvTasks.Items.Add((ListViewItem) compressorTaskViewItem);
   }
   this.ltvTasks.EndUpdate();
   ThreadPool.QueueUserWorkItem(new WaitCallback(this.Do));
   base.OnShown(e);
 }