/// <summary> /// Register the specified tangoObject. /// </summary> /// <param name="tangoObject">Tango object.</param> public void Register(Object tangoObject) { if (m_enableUXLibrary) { ITangoUX tangoUX = tangoObject as ITangoUX; if (tangoUX != null) { UxExceptionEventListener.RegisterOnUxExceptionEventHandler(tangoUX.OnUxExceptionEventHandler); } ITangoUXMultithreaded tangoUXMultithreaded = tangoObject as ITangoUXMultithreaded; if (tangoUXMultithreaded != null) { UxExceptionEventListener.RegisterOnOnUxExceptionEventMultithreadedAvailable(tangoUXMultithreaded.OnUxExceptionEventMultithreadedAvailableEventHandler); } } }
/// <summary> /// Disperse any events related to TangoUX functionality. /// </summary> public void Update() { UxExceptionEventListener.SendIfAvailable(); }