例如我注册了该事件
m_BillInterface.OnGetFldValue += new Kingdee.K3.BOS.PlugInModel.Bill.Events.OnGetFldValueHandler(m_BillInterface_OnGetFldValue);void m_BillInterface_OnGetFldValue(object sender, Kingdee.K3.BOS.PlugInModel.Bill.Events.GetFldValueEventArgs e)
{}我想调用一次这个事件后,就将该事件禁掉
m_BillInterface.OnGetFldValue += new Kingdee.K3.BOS.PlugInModel.Bill.Events.OnGetFldValueHandler(m_BillInterface_OnGetFldValue);void m_BillInterface_OnGetFldValue(object sender, Kingdee.K3.BOS.PlugInModel.Bill.Events.GetFldValueEventArgs e)
{}我想调用一次这个事件后,就将该事件禁掉
bool flag = true;
void m_BillInterface_OnGetFldValue(object sender, Kingdee.K3.BOS.PlugInModel.Bill.Events.GetFldValueEventArgs e)
{
if(flag)
{
.....(写你的相应处理方法)
flag = false;
}}
{
//处理完你的逻辑后
m_BillInterface.OnGetFldValue -= new Kingdee.K3.BOS.PlugInModel.Bill.Events.OnGetFldValueHandler(m_BillInterface_OnGetFldValue);}看样子是金蝶K3的二次开发?
Kingdee.K3.BOS.PlugInModel.Bill
金蝶 K3 BOS系统 插件 账单
PS:竖着看对应关系。