FireEvent() public method

public FireEvent ( object sender, RepositoryCancelEventArgs args ) : void
sender object
args RepositoryCancelEventArgs
return void
 private void RouteCancelEvent(RepositoryCancelEvent @event, object sender, Node contextNode, CancellableNodeEventArgs originalArgs)
 {
     var args = new RepositoryCancelEventArgs(contextNode);
     @event.FireEvent(sender, args);
     originalArgs.Cancel = args.Cancel;
     originalArgs.CancelMessage = args.CancelMessage;
 }
示例#2
0
        private void RouteCancelEvent(RepositoryCancelEvent @event, object sender, Node contextNode, CancellableNodeEventArgs originalArgs)
        {
            var args = new RepositoryCancelEventArgs(contextNode);

            @event.FireEvent(sender, args);
            originalArgs.Cancel        = args.Cancel;
            originalArgs.CancelMessage = args.CancelMessage;
        }