using System.Windows; using Prism.Events; using System.Windows.Media; namespace DTS.Common.Events { /// /// Progress bar event /// /// /// notification event for progress bars /// public class ProgressBarEvent : PubSubEvent { } public class ProgressBarEventArg { /// /// progress bar the event belongs to /// public string ProgressBarName { get; } /// /// the AggregateStatusColor bar color /// public Color ProgressBarColor { get; set; } public bool SetPercentage { get; set; } = false; /// /// progress bar percentage to set (1-100) /// public double ProgressBarPercentage { get; set; } public bool SetText { get; set; } = false; /// /// the Aggregate status text to set on the progress bar /// public string ProgressBarText { get; set; } public bool SetVisibility { get; set; } = false; /// /// the visibility for the progress bar /// public Visibility ProgressBarVisibility { get; set; } public ProgressBarEventArg(string name, Color color, Visibility visibility = Visibility.Visible, double percentage = double.NaN, string text = null) { ProgressBarName = name; ProgressBarColor = color; ProgressBarPercentage = percentage; ProgressBarText = text; ProgressBarVisibility = visibility; } public ProgressBarEventArg() { ProgressBarName = "Footer"; } } }