ckfinder/_source/Connector/CKFinderEvent.cs
(完整代码) 1KBusing 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;
}
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。