Ejemplo n.º 1
0
 public DualityWorker(DualityWork work, string workFileName, TextBox textBox)
 {
     vTextBox                   = textBox;
     vDualityWork               = work;
     vWorkFileName              = workFileName;
     vErrorMessage              = "";
     vAllDone                   = false;
     WorkerReportsProgress      = true;
     WorkerSupportsCancellation = true;
     DoWork          += BackgroundWorker_DoWork;
     ProgressChanged += BackgroundWorker_ProgressChanged;
 }
Ejemplo n.º 2
0
 private void CreateWorker(DualityWork work, string workFile)
 {
     DualityWorker = new DualityWorker(work, workFile, InfoText);
     RestartButton_OnClick(DualityWorker, null);
 }