Exemple #1
0
 private void Searcher_ThreadEnded(ThreadEndedEventArgs e)
 {
     if (!m_closing)
     {
         this.Invoke(ThreadEnded, new object[] { e });
     }
 }
Exemple #2
0
 private void this_ThreadEnded(ThreadEndedEventArgs e)
 {
     // Show an error message if necessary
     if (!e.Success)
     {
         MessageBox.Show(e.ErrorMsg, "Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
     }
 }
Exemple #3
0
 private void Searcher_ThreadEnded(ThreadEndedEventArgs e)
 {
     if (!m_closing)
     {
         // Invoke the method "this_ThreadEnded" through a delegate,
         // so it is executed in the same thread as MainWindow:
         this.Invoke(ThreadEnded, new object[] { e });
     }
 }
Exemple #4
0
        private void this_ThreadEnded(ThreadEndedEventArgs e)
        {
            EnableButtons();

            if (!e.Success)
            {
                MessageBox.Show(e.ErrorMsg, "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
            }
        }
Exemple #5
0
        private void this_ThreadEnded(ThreadEndedEventArgs e)
        {
            // Enable all buttons except stop button:
            EnableButtons();

            // Show an error message if necessary:
            if (!e.Success)
            {
                MessageBox.Show(e.ErrorMsg, "Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
            }
        }
Exemple #6
0
        private void this_ThreadEnded(ThreadEndedEventArgs e)
        {
            // Enable all buttons except stop button:
            EnableButtons();

            // Show an error message if necessary:
            if (!e.Success)
            {
                MessageBox.Show(e.ErrorMsg, "Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
            }
        }
Exemple #7
0
 private void Searcher_ThreadEnded(ThreadEndedEventArgs e)
 {
     if (!m_closing)
     {
         // Invoke the method "this_ThreadEnded" through a delegate,
         // so it is executed in the same thread as MainWindow:
         this.Invoke(ThreadEnded, new object[] { e });
     }
 }