private void OnProgressUpdate(int step, string password, TimeSpan runTime) { if (ProgressUpdate == null) { return; } var args = new ProgressUpdateEventArgs(step, password, runTime); ProgressUpdate(this, args); }
void ProgressUpdateEventHandler(object sender, ProgressUpdateEventArgs e) { string runTime = e.RunTime.ToString(); Console.Write($"step: {e.Step}, password: '******' time: {runTime} sec\r"); }