public void AfterCommandExecutionInvoke(object sender, SpExecutionEventArgs e) { SpExecutionEventHandler handler = AfterCommandExecution; if (handler != null) { handler(sender, e); } }
public void CommandExecutionErrorInvoke(object sender, SpExecutionEventArgs e) { SpExecutionEventHandler handler = CommandExecutionError; if (handler != null) { handler(sender, e); } }
private void AttachEvents() { AfterCommandExecution += new SpExecutionEventHandler(DB_OnAfterExecution); BeforeCommandExecution += new SpExecutionEventHandler(DB_OnBeforeExecution); }