private void OnProgressChanged(TaskSnapshot snapshot) { progressBarTask.Report(snapshot); labelTask.Report(snapshot); if (snapshot.State == TaskState.Complete) { _allowClose = true; Close(); } }
private void OnProgressChanged(TaskSnapshot snapshot) { progressBarTask.Fraction = snapshot.Value; labelTask.Text = snapshot.ToString(); if (snapshot.State == TaskState.Complete) OnClose(); }