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); } }
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); }
protected virtual void OnCustomCreateWebDataSource(CustomCreateWebDataSourceEventArgs e) { var handler = CustomCreateWebDataSource; handler?.Invoke(this, e); }