private void BodyClauses_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e) { if (e.NewItems != null) { foreach (var fromClause in e.NewItems.OfType <FromClauseBase>()) { _uniqueIdentifierGenerator.AddKnownIdentifier(fromClause.ItemName); } } }
private void BodyClauses_Added(object sender, ObservableCollectionChangedEventArgs <IBodyClause> e) { ArgumentUtility.CheckNotNull("e.Item", e.Item); var clauseAsFromClause = e.Item as FromClauseBase; if (clauseAsFromClause != null) { _uniqueIdentifierGenerator.AddKnownIdentifier(clauseAsFromClause.ItemName); } }
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); } } }