コード例 #1
0
 private static void FireItemCompletedEvent(uSyncItemEventHandler eventHandler, XElement node, ChangeType changeType)
 {
     eventHandler?.Invoke(new uSyncItemEventArgs <XElement>
     {
         Item   = node,
         Change = changeType
     });
 }
コード例 #2
0
        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);
        }