mirror of
https://github.com/jwetzell/qController.git
synced 2026-08-10 18:03:55 +00:00
28 lines
655 B
C#
28 lines
655 B
C#
using System;
|
|
using Xamarin.Forms;
|
|
namespace qController
|
|
{
|
|
public class QUpdater
|
|
{
|
|
private bool active = true;
|
|
private QController qController;
|
|
public QUpdater(QController controller)
|
|
{
|
|
qController = controller;
|
|
}
|
|
|
|
public void Start(){
|
|
active = true;
|
|
Device.StartTimer(TimeSpan.FromSeconds(0.01), () => {
|
|
qController.sendCommand("/selectedCues");
|
|
qController.sendCommand("/cue/selected/levels");
|
|
return active;
|
|
});
|
|
}
|
|
|
|
public void Kill(){
|
|
active = false;
|
|
}
|
|
}
|
|
}
|