mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-05-29 10:24:34 +00:00
19 lines
873 B
C#
19 lines
873 B
C#
using System.ComponentModel;
|
|
using System.Diagnostics;
|
|
|
|
namespace PckStudio.Controls
|
|
{
|
|
static class BackgroundWorkerExtensions
|
|
{
|
|
public static void ReportProgressInfo(this BackgroundWorker worker, string message)
|
|
=> worker.ReportProgress(0, ProgressReportMessage.Info(message));
|
|
public static void ReportProgressWarning(this BackgroundWorker worker, string message)
|
|
=> worker.ReportProgress(0, ProgressReportMessage.Warning(message));
|
|
public static void ReportProgressError(this BackgroundWorker worker, string message)
|
|
=> worker.ReportProgress(0, ProgressReportMessage.Error(message));
|
|
[Conditional("DEBUG")]
|
|
public static void ReportProgressDebug(this BackgroundWorker worker, string message)
|
|
=> worker.ReportProgress(0, ProgressReportMessage.Debug(message));
|
|
}
|
|
}
|