//[FUNCTION - BeginWorking()]
 //Used from other classes as a way to start the evaluation/worker
 public void BeginWorking(bool isOptimized)
 {
     isCancelled         = false;
     this.isOptimization = isOptimized;
     numComplete         = 0;
     ModifyProgressBarColor.SetState(ProgressBarSchedules, 2);
     BackgroundWorkerSchedules.RunWorkerAsync();
 }
Exemple #2
0
 //PROGRESS BAR FUNCTION
 //[FUNCTION - StartCalc]
 //Resets all needed variables
 public void StartCalcPB()
 {
     ModifyProgressBarColor.SetState(ProgressBar, 2);
     curCalcNum   = 0;
     totalCalcNum = dt.Rows.Count;
 }