private void InitAsync() { Title = Title + STR_INITIALIZING; ubisensePositioning = new UbisensePositioning(); //initializing here to not delay the user interface's startup ubisensePositioning.GetObjectsCompleted += UbisensePositioning_GetObjectsCompleted; ubisensePositioning.GetObjectsAsync(); //getting objects may take some time }
public void Cleanup() { if (ubisensePositioning != null) { ubisensePositioning.Dispose(); ubisensePositioning = null; } }