void Writer_OnProgressChanged(object sender, ISUtils.Async.WriteDbProgressChangedEventArgs e) { IndexProgressChangedEventArgs args = new IndexProgressChangedEventArgs( e.RowNum,e.CurrentRow); OnProgressChangedEvent(this, args); }
private void OnProgressChanged(object sender, IndexProgressChangedEventArgs e) { toolStripProgressBar.Value = toolStripProgressBar.Value+1; if (toolStripProgressBar.Value == toolStripProgressBar.Maximum) toolStripProgressBar.Value = toolStripProgressBar.Minimum; Application.DoEvents(); }