Jack 4d94fbf54f
All checks were successful
Build and push image / Build (push) Successful in 49s
i live in spain but the S is silent
2023-09-28 00:53:27 +01:00

30 lines
897 B
C#
Executable File

using System.Windows.Media;
namespace ksBroadcastingTestClient.Broadcasting
{
public class HudPageViewModel : KSObservableObject
{
public string Caption { get; }
public Brush HudPageForeground { get => Get<Brush>(); private set => Set(value); }
public Brush HudPageBackground { get => Get<Brush>(); private set => Set(value); }
public HudPageViewModel(string hudPageCaption)
{
Caption = hudPageCaption;
}
public void SetActive(string activeHudPage)
{
if(Caption == activeHudPage)
{
HudPageForeground = Brushes.Black;
HudPageBackground = Brushes.Yellow;
}
else
{
HudPageForeground = Brushes.Black;
HudPageBackground = null;
}
}
}
}