Ejemplo n.º 1
0
 public void UpdateDictionaryEventHandler(object sender, DictionaryEventArgs e)
 {
     if (progressBar.InvokeRequired)
     {
         Invoke(OnUpdateHashEvent
             , new ProgressEventArgs(e.Value, (e.State == DictionaryState.Finished)));
     }
     else
     {
         TreatHashEvent(new ProgressEventArgs(e.Value, (e.State == DictionaryState.Finished)));
     }
 }
Ejemplo n.º 2
0
 private void TriggerHashEvent(DictionaryEventArgs e)
 {
     if (HashEvent != null)
     {
         HashEvent(this, e);
     }
 }