Ejemplo n.º 1
0
        /// <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();
        }
Ejemplo n.º 2
0
        private void UpdateResultPictures()
        {
            VPThreading.Abort(_updateResultPictureThread);
            ThreadStart starter = new ThreadStart(UpdateResultPicturesThread);

            _updateResultPictureThread = new Thread(starter);
            _updateResultPictureThread.Start();
        }
Ejemplo n.º 3
0
        private void Button1_Click(object sender, EventArgs e)
        {
            VPThreading.Abort(_updateBDDThread);
            ThreadStart starter = new ThreadStart(UpdateGridBDDThread);

            _updateBDDThread = new Thread(starter);
            _updateBDDThread.Start();
        }
Ejemplo n.º 4
0
        private void _downloadFromURLButton_Click(object sender, EventArgs e)
        {
            ThreadStart starter = new ThreadStart(DownloadFromURLThread);

            VPThreading.Abort(_thread);
            _thread = new Thread(starter);
            _thread.Start();
        }
Ejemplo n.º 5
0
 /// <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);
 }
Ejemplo n.º 6
0
 /// <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);
 }