public void OnCustomCreateListEditor(CreatingListEditorEventArgs e) { EventHandler<CreatingListEditorEventArgs> handler = CustomCreateListEditor; if (handler != null) handler(this, e); }
protected override ListEditor CreateListEditorCore(IModelListView modelListView, CollectionSourceBase collectionSource) { var creatingListEditorEventArgs = new CreatingListEditorEventArgs(modelListView, collectionSource); OnCustomCreateListEditor(creatingListEditorEventArgs); return creatingListEditorEventArgs.Handled ? creatingListEditorEventArgs.ListEditor : base.CreateListEditorCore(modelListView, collectionSource); }