mirror of
https://github.com/jwetzell/qController.git
synced 2026-08-19 22:24:18 +00:00
Implement notes, and work on updating cue info
This commit is contained in:
@@ -20,7 +20,7 @@ namespace qController
|
||||
qController.qClient.qParser.SelectedCueUpdated += SelectedCueUpdated;
|
||||
qController.qClient.qParser.WorkspaceUpdated += WorkspaceUpdated;
|
||||
qController.qClient.qParser.PlaybackPositionUpdated += PlaybackPositionUpdated;
|
||||
qController.qClient.sendAndReceiveString("/cueLists");
|
||||
qController.qClient.qParser.CueInfoUpdated += OnCueUpdateReceived;
|
||||
NavigationPage.SetHasNavigationBar(this, false);
|
||||
instanceName.Text = name;
|
||||
|
||||
@@ -183,6 +183,20 @@ namespace qController
|
||||
}
|
||||
}
|
||||
|
||||
public void OnCueUpdateReceived(object sender, CueEventArgs args)
|
||||
{
|
||||
qController.qWorkspace.UpdateCue(args.Cue);
|
||||
Console.WriteLine("Cue updated in ControlPage: " + args.Cue.uniqueID);
|
||||
if (args.Cue.uniqueID == qController.playbackPosition)
|
||||
{
|
||||
Console.WriteLine("Cue that was updated is equal to the playback position.");
|
||||
Device.BeginInvokeOnMainThread(() =>
|
||||
{
|
||||
qCell.UpdateSelectedCue(args.Cue);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
protected override void OnDisappearing()
|
||||
{
|
||||
base.OnDisappearing();
|
||||
|
||||
Reference in New Issue
Block a user