From 6e80be67ea1618faa5c5795e8b409da340b84392 Mon Sep 17 00:00:00 2001 From: Joel Wetzell Date: Fri, 4 Nov 2022 23:03:39 -0500 Subject: [PATCH] Start on cue status icon --- .../ViewModels/QCueViewModel.cs | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/qController.Standard/ViewModels/QCueViewModel.cs b/qController.Standard/ViewModels/QCueViewModel.cs index f4dde71..9bb41ff 100644 --- a/qController.Standard/ViewModels/QCueViewModel.cs +++ b/qController.Standard/ViewModels/QCueViewModel.cs @@ -6,6 +6,7 @@ using QControlKit; using QControlKit.Constants; using QControlKit.Events; using System.Collections.Generic; +using qController.Helpers; namespace qController.ViewModels { @@ -52,6 +53,10 @@ namespace qController.ViewModels OnPropertyChanged("cues"); } } + else if (property.Equals(QOSCKey.IsBroken)) + { + OnPropertyChanged("status"); + } } } @@ -119,5 +124,24 @@ namespace qController.ViewModels OnPropertyChanged(); } } + + public string status + { + get + { + if (cue.IsRunning) + { + return IconConstants.Play; + } + else if (cue.IsBroken) + { + return IconConstants.Cancel; + } + else + { + return " "; + } + } + } } }