示例#1
0
 private void BodyClauses_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
 {
     if (e.NewItems != null)
     {
         foreach (var fromClause in e.NewItems.OfType <FromClauseBase>())
         {
             _uniqueIdentifierGenerator.AddKnownIdentifier(fromClause.ItemName);
         }
     }
 }
示例#2
0
        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);
            }
        }
示例#3
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);
                }
            }
        }