Пример #1
0
        private void SetProgress(double value)
        {
            Progress = value;
            ProgressIndetermitate = Equals(value, 0d);

            if (_taskbarProgress == null)
            {
                _taskbarProgress = new TaskbarProgress(this);
            }

            if (ProgressIndetermitate)
            {
                _taskbarProgress.Set(TaskbarState.Indeterminate);
            }
            else
            {
                _taskbarProgress.Set(TaskbarState.Normal);
                _taskbarProgress.Set(value);
            }
        }