/// <summary> /// Register for notification after any successful loads. /// </summary> /// <param name="del">Delegate to call after successful load.</param> /// <remarks> /// Registration holds until a corresponding call to <see cref="UnregisterForLoad(PostAlignmentLoadedDelegate)"/>. /// </remarks> public void RegisterForLoad(PostAlignmentLoadedDelegate del) { afterLoadNotifications += del; if (poseDB.IsLoaded) { del?.Invoke(); needSend = true; } }
/// <summary> /// Un-register for post load notifications, after registration via <see cref="RegisterForLoad(PostAlignmentLoadedDelegate)"/>. /// </summary> /// <param name="del">The delegate to unregister.</param> public void UnregisterForLoad(PostAlignmentLoadedDelegate del) { afterLoadNotifications -= del; }