Example #1
0
 private void OnTaskProgress(string progressText)
 {
     TaskProgress?.Invoke(this, new TaskProgressEventArgs()
     {
         ProgressText = progressText
     });
 }
Example #2
0
        /// <summary>
        /// Progress_s the progress changed.
        /// </summary>
        /// <param name="sender">The sender.</param>
        /// <param name="e">The e.</param>
        void progress_ProgressChanged(object sender, double e)
        {
            e = Math.Min(e, 100);

            CurrentProgress = e;

            TaskProgress?.Invoke(this, new GenericEventArgs <double>
            {
                Argument = e
            });
        }
Example #3
0
 protected virtual void OnTaskProgress(TaskProgressEventArgs eventargs)
 {
     TaskProgress?.Invoke(eventargs);
 }
 private void OnTaskProgress(int progress) => TaskProgress?.Invoke(this, progress);