public MainWindow() { InitializeComponent(); channel = new TuioChannel(); TuioChannel.OnTuioRefresh += TuioChannel_OnTuioRefresh; InitTrayIcon(); SetStatus(TouchInjectorStatus.Initializing); }
private async void ConnectTUIO() { channel = new TuioChannel(); TuioChannel.OnTuioRefresh += TuioChannel_OnTuioRefresh; bool touch = await InitTouch(); bool tuio = await ConnectChannel(); targetArea = System.Windows.Forms.Screen.AllScreens[0].Bounds; }