private void butSenArtnetPoll_Click(object sender, RoutedEventArgs e) { artnetEngine = new SimpleArtnet.SimpleArtNetEngine( (node) => ArtNetDeviceAction(node), (buf, offset) => { FastRoutingMatrix.Current.CopyDmxBufferTo(buf, offset); } ); artnetEngine.Start(); }
private void butStopArtnetPoll_Click(object sender, RoutedEventArgs e) { if (artnetEngine == null) { return; } artnetEngine.Stop(); artnetEngine = null; }