Salut,
J'ai un certain nombre de backgroundworkers dans une form qui fonctionnent très bien.
J'aimerais executer une fonction lorsque tous les bckgroundworkers ont fini de tourner.
J'ai essayé ça mais il ne semble pas trop aimer car ce n'est pas vraiment un control.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8 foreach (Control c in this.Controls) { if (c is BackgroundWorker) if (((BackgroundWorker)c).IsBusy) return; log.Info(c.Name); }
comment faire pour avoir la liste des backgroundworkers ?
Partager