예제 #1
0
        private void OnProgressChanged(TaskSnapshot snapshot)
        {
            progressBarTask.Report(snapshot);
            labelTask.Report(snapshot);

            if (snapshot.State == TaskState.Complete)
            {
                _allowClose = true;
                Close();
            }
        }
예제 #2
0
        private void OnProgressChanged(TaskSnapshot snapshot)
        {
            progressBarTask.Report(snapshot);
            labelTask.Report(snapshot);

            if (snapshot.State == TaskState.Complete)
            {
                _allowClose = true;
                Close();
            }
        }
예제 #3
0
        private void OnProgressChanged(TaskSnapshot snapshot)
        {
            progressBarTask.Fraction = snapshot.Value;
            labelTask.Text = snapshot.ToString();

            if (snapshot.State == TaskState.Complete)
                OnClose();
        }