示例#1
0
 public void OnCustomCreateListEditor(CreatingListEditorEventArgs e) {
     EventHandler<CreatingListEditorEventArgs> handler = CustomCreateListEditor;
     if (handler != null) handler(this, e);
 }
示例#2
0
 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);
 }