protected void AddRange(IList values) { ArgumentUtility.CheckNotNull("values", values); ArgumentUtility.CheckItemsNotNullAndType("values", values, typeof(IControlItem)); BeginEdit(); for (int i = 0; i < values.Count; i++) { Add((IControlItem)values[i]); } EndEdit(); }
private void BodyClauses_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e) { ArgumentUtility.CheckNotNull("e", e); ArgumentUtility.CheckItemsNotNullAndType("e.NewItems", e.NewItems, typeof(IBodyClause)); if (e.NewItems != null) { foreach (var fromClause in e.NewItems.OfType <FromClauseBase>()) { _uniqueIdentifierGenerator.AddKnownIdentifier(fromClause.ItemName); } } }
private void Orderings_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e) { ArgumentUtility.CheckNotNull("e", e); ArgumentUtility.CheckItemsNotNullAndType("e.NewItems", e.NewItems, typeof(Ordering)); }
private void ResultOperators_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e) { ArgumentUtility.CheckNotNull("e", e); ArgumentUtility.CheckItemsNotNullAndType("e.NewItems", e.NewItems, typeof(ResultOperatorBase)); }
/// <summary> Sets the <see cref="IBusinessObjectWithIdentity"/> objects to be displayed in edit mode. </summary> /// <remarks> /// Use this method to set the listed items, e.g. from the parent control, if no <see cref="Select"/> /// statement was provided. /// </remarks> /// <param name="businessObjects"> /// An <see cref="IList"/> of <see cref="IBusinessObjectWithIdentity"/> objects to be used as list of possible /// values. Must not be <see langword="null"/>. /// </param> public void SetBusinessObjectList(IList businessObjects) { ArgumentUtility.CheckNotNull("businessObjects", businessObjects); ArgumentUtility.CheckItemsNotNullAndType("businessObjects", businessObjects, typeof(IBusinessObjectWithIdentity)); RefreshBusinessObjectList(businessObjects); }