protected internal virtual void RaiseOnIconSelection(OnIconSelectionEventArgs e) { OnIconSelectionEventHandler handler = (OnIconSelectionEventHandler)Events[_onIconSelection]; if (handler != null) { handler(GetEventSender(), e); } }
protected override void DrawCellEdit(GridViewDrawArgs e, BaseEditViewInfo editInfo, GridCellInfo cell, AppearanceObject appearance, bool isSelectedCell) { IIconSelector iconSelector = cell.Editor as IIconSelector; if (iconSelector != null) { OnIconSelectionEventHandler EH = new OnIconSelectionEventHandler(iconSelector_OnIconSelection); iconSelector.OnIconSelection += EH; nowDrawingCellInfo = cell; try { base.DrawCellEdit(e, editInfo, cell, appearance, isSelectedCell); } finally { iconSelector.OnIconSelection -= EH; } } else { base.DrawCellEdit(e, editInfo, cell, appearance, isSelectedCell); } }