wabbajack/Wabbajack.App.Wpf/Messages/TaskBarUpdate.cs

23 lines
607 B
C#
Raw Permalink Normal View History

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
});
}
}