Пример #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)));
     }
 }
Пример #2
0
 private void TriggerHashEvent(DictionaryEventArgs e)
 {
     if (HashEvent != null)
     {
         HashEvent(this, e);
     }
 }