Пример #1
0
        public void AfterCommandExecutionInvoke(object sender, SpExecutionEventArgs e)
        {
            SpExecutionEventHandler handler = AfterCommandExecution;

            if (handler != null)
            {
                handler(sender, e);
            }
        }
Пример #2
0
        public void CommandExecutionErrorInvoke(object sender, SpExecutionEventArgs e)
        {
            SpExecutionEventHandler handler = CommandExecutionError;

            if (handler != null)
            {
                handler(sender, e);
            }
        }
Пример #3
0
 private void AttachEvents()
 {
     AfterCommandExecution  += new SpExecutionEventHandler(DB_OnAfterExecution);
     BeforeCommandExecution += new SpExecutionEventHandler(DB_OnBeforeExecution);
 }