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