public void Add(int total)
        {
            ProgressingEventArgs e = new ProgressingEventArgs
            {
                Total = total
            };

            OnProgressChanged(e);
        }
Exemplo n.º 2
0
 private void ReadProgressChanged(object sender, ProgressingEventArgs e)
 {
     Interlocked.Increment(ref ReadingCounter);
     Readingprogress(e.Total);
 }
        protected virtual void OnProgressChanged(ProgressingEventArgs e)
        {
            EventHandler <ProgressingEventArgs> handler = progressChange;

            handler?.Invoke(this, e);
        }
Exemplo n.º 4
0
 private void SearchProgressChanged(object sender, ProgressingEventArgs e)
 {
     Interlocked.Increment(ref ProgressCounter);
     UpdateProgress(e.Total);
 }