private static void FireItemCompletedEvent(uSyncItemEventHandler eventHandler, XElement node, ChangeType changeType) { eventHandler?.Invoke(new uSyncItemEventArgs <XElement> { Item = node, Change = changeType }); }
private static bool FireItemStartingEvent(uSyncItemEventHandler eventHandler, XElement node) { if (eventHandler != null) { var e = new uSyncItemEventArgs <XElement> { Item = node }; eventHandler?.Invoke(e); return(e.Cancel); } return(true); }