private void VolumeS_prograssChanged(object sender, VolumePrograssChangedEventArgs e) { this.Invoke(new MethodInvoker(delegate() { lblPrograssS.Text = e.prograss.ToString() + " / " + e.total.ToString(); progressBarS.Value = (e.prograss * 100) / e.total; })); }
protected virtual void OnPrograssChanged(VolumePrograssChangedEventArgs e) { prograssChanged?.Invoke(this, e); }
public Volume() { prograssChangeArgs = new VolumePrograssChangedEventArgs(); volumeCalculatedArgs = new VolumeCalculatedEventArgs(); }