Ejemplo n.º 1
0
 private void backgroundWorkerEnd(object o)
 {
     if (InvokeRequired)
     {
         var d = new backgroundWorkerEndHandler(backgroundWorkerEnd);
         d.Invoke(o);
     }
     else
     {
         Close();
     }
 }
Ejemplo n.º 2
0
 private void backgroundWorkerEnd(object o)
 {
     if (InvokeRequired)
     {
         var d = new backgroundWorkerEndHandler(backgroundWorkerEnd);
         d.Invoke(o);
     }
     else
     {
         listBox_fileList.Items.AddRange(
             Metas.Select(p => p.Name).ToArray());
         loadingCircle_previewLoad.Visible = false;
         if (Metas.Length != 0)
         {
             listBox_fileList.SelectedIndex = 0;
         }
     }
 }