Exemple #1
0
 internal void DoAsync()
 {
     DataContext.GetListCompleted += context_GetListCompleted;
     DataContext.GetListAsync <CustomsWarehouse>(CommonDefinition.CustomsWarehouseTitle,
                                                 CommonDefinition.GetCAMLSelectedID(m_BatchGroup.Key, CommonDefinition.FieldBatch, CommonDefinition.CAMLTypeText));
 }
        internal void LoadListItem <TEntity>(int fieldLookupValue, EntityListItemsCollection <TEntity> entityListItemsCollection)
            where TEntity : class, ITrackEntityState, ITrackOriginalValues, INotifyPropertyChanged, INotifyPropertyChanging, new()
        {
            ListItemCollection m_ListItemCollection = GetListItemCollection(entityListItemsCollection.MyList, CommonDefinition.GetCAMLSelectedID(fieldLookupValue, CommonDefinition.FieldID, CommonDefinition.CAMLTypeNumber));

            foreach (ListItem _listItemx in m_ListItemCollection)
            {
                entityListItemsCollection.Add(_listItemx);
            }
        }