Example #1
0
        /// <remarks>Runs on the event loop.</remarks>
        private void ProcessTaskProgressMessageChange(PropertyUpdateEventArgs <string> e)
        {
            _eventLoop.AssertThread();

            ProgressMessage = e.NewValue;
            _eventLoop.FireEvent(this, ProgressMessageChanged,
                                 new TaskPropertyUpdateEventArgs <string>(Task, nameof(ITask.ProgressMessage), e.OldValue, e.NewValue));
        }
Example #2
0
 private void TaskProgressMessageChangeHandler(object sender, PropertyUpdateEventArgs <string> e)
 => _eventLoop.RunActionAsync(() => ProcessTaskProgressMessageChange(e));
Example #3
0
 private void TaskProgressChangedHandler(object sender, PropertyUpdateEventArgs <float> e)
 => _eventLoop.RunActionAsync(() => ProcessTaskProgressChange(e));
Example #4
0
 private void TaskStateChangedHandler(object sender, PropertyUpdateEventArgs <TaskState> e)
 => _eventLoop.RunActionAsync(() => ProcessTaskStateChange(e.OldValue, e.NewValue));