mirror of
https://github.com/jwetzell/qController.git
synced 2026-08-20 06:29:13 +00:00
Switch to using local workspace for info display
This commit is contained in:
@@ -9,5 +9,35 @@ namespace qController
|
||||
public List<QCueList> data { get; set; }
|
||||
public string workspace_id { get; set; }
|
||||
public string address { get; set; }
|
||||
|
||||
public QCue GetCue(string cue_id)
|
||||
{
|
||||
QCue returnCue = null;
|
||||
foreach (var cueList in data)
|
||||
{
|
||||
foreach (var cue in cueList.cues)
|
||||
{
|
||||
if(cue.uniqueID == cue_id)
|
||||
{
|
||||
returnCue = cue;
|
||||
}
|
||||
}
|
||||
}
|
||||
return returnCue;
|
||||
}
|
||||
|
||||
public void UpdateCue(QCue cue)
|
||||
{
|
||||
for (int i = 0; i < data.Count; i++)
|
||||
{
|
||||
for (int j = 0; j < data[i].cues.Count; j++)
|
||||
{
|
||||
if(data[i].cues[j].uniqueID == cue.uniqueID)
|
||||
{
|
||||
data[i].cues[j] = cue;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user