private void NotifyChanges(int completedCount, int totalCount) { Application.SyncProgress progress = new Application.SyncProgress(); progress.completedCount = completedCount; progress.totalCount = totalCount; SetChanged(); NotifyObservers(progress); }
public void Run() { Application.SyncProgress progress = (Application.SyncProgress)data; if (progress.totalCount > 0 && progress.completedCount < progress.totalCount) { this._enclosing._enclosing.SetProgressBarIndeterminateVisibility(true); } else { this._enclosing._enclosing.SetProgressBarIndeterminateVisibility(false); } }