mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
23 lines
607 B
C#
23 lines
607 B
C#
|
using System.Windows.Shell;
|
||
|
using ReactiveUI;
|
||
|
|
||
|
namespace Wabbajack.Messages;
|
||
|
|
||
|
public class TaskBarUpdate
|
||
|
{
|
||
|
public string Description { get; init; }
|
||
|
public double ProgressValue { get; init; }
|
||
|
public TaskbarItemProgressState State { get; init; }
|
||
|
|
||
|
public static void Send(string description, TaskbarItemProgressState state = TaskbarItemProgressState.None,
|
||
|
double progressValue = 0)
|
||
|
{
|
||
|
MessageBus.Current.SendMessage(new TaskBarUpdate()
|
||
|
{
|
||
|
Description = description,
|
||
|
ProgressValue = progressValue,
|
||
|
State = state
|
||
|
});
|
||
|
}
|
||
|
}
|