Пример #1
0
 protected override void OnShown(EventArgs e)
 {
     this.taskViewItems = new Dictionary <TaskInfo, TaskInfoViewItem>();
     this.ltvTasks.BeginUpdate();
     this.ltvTasks.Items.Clear();
     foreach (TaskInfo taskInfo in this.tasks)
     {
         TaskInfoViewItem taskInfoViewItem = new TaskInfoViewItem(taskInfo);
         this.taskViewItems.Add(taskInfo, taskInfoViewItem);
         this.ltvTasks.Items.Add((ListViewItem)taskInfoViewItem);
     }
     this.ltvTasks.EndUpdate();
     this.lastUpdateTime = DateTime.Now;
     base.OnShown(e);
     this.worker.RunWorkerAsync();
 }
Пример #2
0
 protected override void OnShown(EventArgs e)
 {
   this.taskViewItems = new Dictionary<TaskInfo, TaskInfoViewItem>();
   this.ltvTasks.BeginUpdate();
   this.ltvTasks.Items.Clear();
   foreach (TaskInfo taskInfo in this.tasks)
   {
     TaskInfoViewItem taskInfoViewItem = new TaskInfoViewItem(taskInfo);
     this.taskViewItems.Add(taskInfo, taskInfoViewItem);
     this.ltvTasks.Items.Add((ListViewItem) taskInfoViewItem);
   }
   this.ltvTasks.EndUpdate();
   this.lastUpdateTime = DateTime.Now;
   base.OnShown(e);
   this.worker.RunWorkerAsync();
 }