Example #1
0
        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();
        }
Example #2
0
        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);
                }
            }
        }
Example #3
0
 private void Orderings_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
 {
     ArgumentUtility.CheckNotNull("e", e);
     ArgumentUtility.CheckItemsNotNullAndType("e.NewItems", e.NewItems, typeof(Ordering));
 }
Example #4
0
 private void ResultOperators_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
 {
     ArgumentUtility.CheckNotNull("e", e);
     ArgumentUtility.CheckItemsNotNullAndType("e.NewItems", e.NewItems, typeof(ResultOperatorBase));
 }
Example #5
0
 /// <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);
 }