Example #1
0
 void UpdateProgressAndStatus(GeneticAlgorithmUpdateStatus data)
 {
     last_status = data;
     if (bw != null && bw.WorkerReportsProgress)
     {
         bw.ReportProgress(data.progress);
     }
     Debug.WriteLine(data.status);
 }
Example #2
0
        public void OnProgressUpdated(int progress)
        {
            var update = new GeneticAlgorithmUpdateStatus();

            update.progress = progress;
            update.status   = Logger.GetStringAndFlush();

            var handler = ProgressUpdated;

            if (handler != null)
            {
                handler(this, new EventArg <GeneticAlgorithmUpdateStatus>(update));
            }
        }