Ejemplo n.º 1
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));
        }
Ejemplo n.º 2
0
        public void OnCustomCreateListEditor(CreatingListEditorEventArgs e)
        {
            EventHandler <CreatingListEditorEventArgs> handler = CustomCreateListEditor;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Ejemplo n.º 3
0
 public void OnCustomCreateListEditor(CreatingListEditorEventArgs e) {
     EventHandler<CreatingListEditorEventArgs> handler = CustomCreateListEditor;
     if (handler != null) handler(this, e);
 }
Ejemplo n.º 4
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);
 }
Ejemplo n.º 5
0
        public void OnCustomCreateListEditor(CreatingListEditorEventArgs e)
        {
            EventHandler <CreatingListEditorEventArgs> handler = CustomCreateListEditor;

            handler?.Invoke(this, e);
        }