Sindbad~EG File Manager
using System;
using System.Collections.Generic;
using System.Text;
namespace CKFinder.Connector
{
public class CKFinderEvent
{
public delegate void Hook( object sender, CKFinderEventArgs e );
public event Hook BeforeExecuteCommand;
public event Hook AfterFileUpload;
public event Hook InitCommand;
public enum Hooks
{
AfterFileUpload,
BeforeExecuteCommand,
InitCommand
};
public void ActivateEvent( Hooks hook, params object[] paramlist )
{
switch ( hook )
{
case Hooks.BeforeExecuteCommand:
if ( BeforeExecuteCommand != null )
{
BeforeExecuteCommand( this, new CKFinderEventArgs( paramlist ) );
}
break;
case Hooks.InitCommand:
if ( InitCommand != null )
{
InitCommand( this, new CKFinderEventArgs( paramlist ) );
}
break;
case Hooks.AfterFileUpload:
if ( AfterFileUpload != null )
{
AfterFileUpload( this, new CKFinderEventArgs( paramlist ) );
}
break;
}
}
}
}
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists