protected override WebDataSource CreateWebDataSource(object collection){
     var args = new CustomCreateWebDataSourceEventArgs(collection);
     OnCustomCreateWebDataSource(args);
     if (args.Handled)
         collection = args.Collection;
     return base.CreateWebDataSource(collection);
 }
Esempio n. 2
0
        protected virtual void OnCustomCreateWebDataSource(CustomCreateWebDataSourceEventArgs e)
        {
            var handler = CustomCreateWebDataSource;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Esempio n. 3
0
        protected override WebDataSource CreateWebDataSource(object collection)
        {
            var args = new CustomCreateWebDataSourceEventArgs(collection);

            OnCustomCreateWebDataSource(args);
            if (args.Handled)
            {
                collection = args.Collection;
            }
            return(base.CreateWebDataSource(collection));
        }
 protected virtual void OnCustomCreateWebDataSource(CustomCreateWebDataSourceEventArgs e){
     var handler = CustomCreateWebDataSource;
     if (handler != null) handler(this, e);
 }
Esempio n. 5
0
        protected virtual void OnCustomCreateWebDataSource(CustomCreateWebDataSourceEventArgs e)
        {
            var handler = CustomCreateWebDataSource;

            handler?.Invoke(this, e);
        }