public BsBulkSelector AddSelector(BsBulkSelectorType type) { var bulkSelector = new BsBulkSelector(type, viewContext); this.AddSelector(bulkSelector); return(bulkSelector); }
private BsBulkSelector GetBulkSelector(BsBulkSelectorType type) { var bulkSelector = this.selectors.FirstOrDefault(x => x.Type == type); if (bulkSelector == null) { throw new ArgumentException("No bulk selector found with the specified type"); } return(bulkSelector); }
public BsBulkSelector(BsBulkSelectorType type, ViewContext viewContext) : base(viewContext) { this.renderer = new BsBulkSelectorRenderer(this); switch (type) { case BsBulkSelectorType.All: this.Type = BsBulkSelectorType.All; this.text = "All"; this.styleClass = "js-all"; break; case BsBulkSelectorType.None: this.Type = BsBulkSelectorType.None; this.text = "None"; this.styleClass = "js-none"; break; } }
public BsBulkSelector ForSelector(BsBulkSelectorType type) { BsBulkSelector bulkSelector = this.GetBulkSelector(type); return(bulkSelector); }
public BsBulkSelector AddSelector(BsBulkSelectorType type) { var bulkSelector = new BsBulkSelector(type, viewContext); this.AddSelector(bulkSelector); return bulkSelector; }
private BsBulkSelector GetBulkSelector(BsBulkSelectorType type) { var bulkSelector = this.selectors.FirstOrDefault(x => x.Type == type); if (bulkSelector == null) { throw new ArgumentException("No bulk selector found with the specified type"); } return bulkSelector; }
public BsBulkSelector ForSelector(BsBulkSelectorType type) { BsBulkSelector bulkSelector = this.GetBulkSelector(type); return bulkSelector; }