Exemplo n.º 1
0
 protected virtual void OnUpdateProgress(KMeansEventArgs eventArgs)
 {
     if (UpdateProgress != null)
     {
         UpdateProgress(this, eventArgs);
     }
     Thread.Sleep(400);
 }
 private void ObjBackgroundWorker_ProgressChanged(object sender, ProgressChangedEventArgs e)
 {
     kmeansEA = e.UserState as KMeansEventArgs;
     if (kmeansEA != null)
     {
         foreach (TamCum tamcum in kmeansEA.tamCumList)
         {
             // textBox3.Text = tamcum.ToString();
             picImage.Invalidate();
             //Thread.Sleep(1000);
         }
     }
 }
Exemplo n.º 3
0
 private void ObjBackgroundWorker_ProgressChanged(object sender, ProgressChangedEventArgs e)
 {
     System.Console.WriteLine(">>> Progress Changed");
     kmeansEA = e.UserState as KMeansEventArgs;
     if (kmeansEA != null)
     {
         foreach (Centroid centroid in kmeansEA.CentroidList)
         {
             System.Console.WriteLine("Centroid: " + centroid.ToString());
             picImage.Invalidate();
         }
     }
 }