mirror of
https://github.com/jwetzell/qController.git
synced 2026-08-06 16:03:48 +00:00
Start on cue status icon
This commit is contained in:
@@ -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 " ";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user