mirror of
https://github.com/jwetzell/qController.git
synced 2026-08-25 00:49:16 +00:00
Migrate All Communication to TCP
This commit is contained in:
@@ -18,6 +18,9 @@ namespace qController
|
||||
|
||||
qController = new QController(address, 53000);
|
||||
qController.qParser.SelectedCueUpdated += SelectedCueUpdated;
|
||||
qController.qParser.WorkspaceUpdated += WorkspaceUpdated;
|
||||
|
||||
qController.qParser.ParseWorkspaceInfo(qController.qClient.sendAndReceiveString("/cueLists"));
|
||||
NavigationPage.SetHasNavigationBar(this, false);
|
||||
instanceName.Text = name;
|
||||
|
||||
@@ -145,6 +148,18 @@ namespace qController
|
||||
});
|
||||
}
|
||||
|
||||
public void WorkspaceUpdated(object sender, WorkspaceEventArgs e)
|
||||
{
|
||||
if(e.UpdatedWorkspace.data.Count > 0)
|
||||
{
|
||||
Device.BeginInvokeOnMainThread(() =>
|
||||
{
|
||||
//
|
||||
});
|
||||
Console.WriteLine("Workspace Updated: " + e.UpdatedWorkspace.workspace_id);
|
||||
}
|
||||
}
|
||||
|
||||
protected override void OnDisappearing()
|
||||
{
|
||||
base.OnDisappearing();
|
||||
|
||||
Reference in New Issue
Block a user