Start on cue status icon

This commit is contained in:
2022-11-04 23:03:39 -05:00
parent 49970bd4fb
commit 6e80be67ea
@@ -6,6 +6,7 @@ using QControlKit;
using QControlKit.Constants; using QControlKit.Constants;
using QControlKit.Events; using QControlKit.Events;
using System.Collections.Generic; using System.Collections.Generic;
using qController.Helpers;
namespace qController.ViewModels namespace qController.ViewModels
{ {
@@ -52,6 +53,10 @@ namespace qController.ViewModels
OnPropertyChanged("cues"); OnPropertyChanged("cues");
} }
} }
else if (property.Equals(QOSCKey.IsBroken))
{
OnPropertyChanged("status");
}
} }
} }
@@ -119,5 +124,24 @@ namespace qController.ViewModels
OnPropertyChanged(); OnPropertyChanged();
} }
} }
public string status
{
get
{
if (cue.IsRunning)
{
return IconConstants.Play;
}
else if (cue.IsBroken)
{
return IconConstants.Cancel;
}
else
{
return " ";
}
}
}
} }
} }