/// <summary> /// Starts search thread /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void _searchButton_Click(object sender, EventArgs e) { VPThreading.Abort(_searchThread); ThreadStart starter = new ThreadStart(SearchThread); _searchThread = new Thread(starter); _searchThread.Start(); }
private void UpdateResultPictures() { VPThreading.Abort(_updateResultPictureThread); ThreadStart starter = new ThreadStart(UpdateResultPicturesThread); _updateResultPictureThread = new Thread(starter); _updateResultPictureThread.Start(); }
private void Button1_Click(object sender, EventArgs e) { VPThreading.Abort(_updateBDDThread); ThreadStart starter = new ThreadStart(UpdateGridBDDThread); _updateBDDThread = new Thread(starter); _updateBDDThread.Start(); }
private void _downloadFromURLButton_Click(object sender, EventArgs e) { ThreadStart starter = new ThreadStart(DownloadFromURLThread); VPThreading.Abort(_thread); _thread = new Thread(starter); _thread.Start(); }
/// <summary> /// Nettoyage des ressources utilisées. /// </summary> /// <param name="disposing">true si les ressources managées doivent être supprimées ; sinon, false.</param> protected override void Dispose(bool disposing) { VPThreading.Abort(_thread); if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); }
/// <summary> /// Nettoyage des ressources utilisées. /// </summary> /// <param name="disposing">true si les ressources managées doivent être supprimées ; sinon, false.</param> protected override void Dispose(bool disposing) { VPThreading.Abort(_searchThread); VPThreading.Abort(_updateBDDThread); VPThreading.Abort(_updateResultPictureThread); if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); }