Beispiel #1
0
 // Last field is added to avoid ambiguity when nulls are passed
 public CustomBackgroundWorker(string workerName, DoWorkHandlerDelegate doWorkHandler, RunAfterCompletionDelegate runAfterCompletion,
                               Label statusLabel, ProgressBar statusProgressBar, Button statusButton, TextBox statusTextbox, bool dummy)
 {
     m_workerName                = workerName;
     m_doWorkHandler             = doWorkHandler;
     m_runAfterCompletion        = runAfterCompletion;
     m_progressChangedHandler    = progressChangedHandler;
     m_runWorkerCompletedHandler = workerCompletedHandler;
     m_statusLabel               = statusLabel;
     m_statusProgressBar         = statusProgressBar;
     m_statusButton              = statusButton;
     m_statusTextbox             = statusTextbox;
     m_useToolStrip              = false;
 }
Beispiel #2
0
 public CustomBackgroundWorker(string workerName, DoWorkHandlerDelegate doWorkHandler, RunAfterCompletionDelegate runAfterCompletion,
                               ToolStripStatusLabel statusLabel, ToolStripProgressBar statusProgressBar, ToolStripButton statusButton, TextBox statusTextbox)
 {
     m_workerName                = workerName;
     m_doWorkHandler             = doWorkHandler;
     m_runAfterCompletion        = runAfterCompletion;
     m_progressChangedHandler    = progressChangedHandler;
     m_runWorkerCompletedHandler = workerCompletedHandler;
     m_statusLabelT              = statusLabel;
     m_statusProgressBarT        = statusProgressBar;
     m_statusButtonT             = statusButton;
     m_statusTextbox             = statusTextbox;
     m_useToolStrip              = true;
 }