public OptomizedObservableCollection <IDataListItem> CreateListToBindTo(IBinaryDataList dataList)
        {
            var result = new OptomizedObservableCollection <IDataListItem>();

            if (dataList != null)
            {
                var listOfEntries = dataList.FetchScalarEntries();

                // process scalars ;)
                foreach (var entry in listOfEntries
                         .Where(e => ((e.ColumnIODirection == enDev2ColumnArgumentDirection.Input ||
                                       e.ColumnIODirection == enDev2ColumnArgumentDirection.Both))))
                {
                    result.AddRange(ConvertIBinaryDataListEntryToIDataListItem(entry));
                }

                // now process recordsets ;)
                listOfEntries = dataList.FetchRecordsetEntries();
                foreach (var entry in listOfEntries)
                {
                    result.AddRange(ConvertIBinaryDataListEntryToIDataListItem(entry));
                }
            }

            return(result);
        }
Пример #2
0
        public OptomizedObservableCollection <IDataListItem> CreateListToBindTo(IDataListModel dataList)
        {
            var result = new OptomizedObservableCollection <IDataListItem>();

            if (dataList != null)
            {
                var listOfScalars = dataList.Scalars;

                // process scalars ;)
                foreach (var entry in listOfScalars
                         .Where(e => ((e.IODirection == enDev2ColumnArgumentDirection.Input ||
                                       e.IODirection == enDev2ColumnArgumentDirection.Both))))
                {
                    result.AddRange(ConvertToIDataListItem(entry));
                }

                // now process recordsets ;)
                var listOfRecordSets = dataList.RecordSets;
                foreach (var entry in listOfRecordSets)
                {
                    result.AddRange(ConvertToIDataListItem(entry));
                }
            }

            return(result);
        }
Пример #3
0
        public OptomizedObservableCollection<IDataListItem> CreateListToBindTo(IDataListModel dataList)
        {
            var result = new OptomizedObservableCollection<IDataListItem>();

            if(dataList != null)
            {
                var listOfScalars = dataList.Scalars;

                // process scalars ;)
                foreach (var entry in listOfScalars
                    .Where(e => e.IODirection == enDev2ColumnArgumentDirection.Input ||
                                e.IODirection == enDev2ColumnArgumentDirection.Both))
                {
                    result.AddRange(ConvertToIDataListItem(entry));
                }

                // now process recordsets ;)
                var listOfRecordSets = dataList.RecordSets;
                foreach (var entry in listOfRecordSets)
                {
                    result.AddRange(ConvertToIDataListItem(entry));
                }
            }

            return result;
        }
        public OptomizedObservableCollection<IDataListItem> CreateListToBindTo(IBinaryDataList dataList)
        {
            var result = new OptomizedObservableCollection<IDataListItem>();

            if(dataList != null)
            {
                var listOfEntries = dataList.FetchScalarEntries();

                // process scalars ;)
                foreach(var entry in listOfEntries
                    .Where(e => ((e.ColumnIODirection == enDev2ColumnArgumentDirection.Input ||
                                 e.ColumnIODirection == enDev2ColumnArgumentDirection.Both))))
                {
                    result.AddRange(ConvertIBinaryDataListEntryToIDataListItem(entry));
                }

                // now process recordsets ;)
                listOfEntries = dataList.FetchRecordsetEntries();
                foreach(var entry in listOfEntries)
                {
                    result.AddRange(ConvertIBinaryDataListEntryToIDataListItem(entry));
                }
            }

            return result;
        }
        private OptomizedObservableCollection <IDataListItem> GetInputTestDataDataNames()
        {
            const int numberOfRecords      = 6;
            const int numberOfRecordFields = 2;
            OptomizedObservableCollection <IDataListItem> items = new OptomizedObservableCollection <IDataListItem>();

            items.AddRange(GetDataListItemScalar());
            items.AddRange(CreateTestDataListItemRecords(numberOfRecords, numberOfRecordFields));

            return(items);
        }
        OptomizedObservableCollection <IDataListItem> GetInputTestDataDataNames()
        {
            var items = new OptomizedObservableCollection <IDataListItem>();

            items.AddRange(GetDataListItemScalar());
            return(items);
        }
        public void OptomizedObservableCollectionTests_AddRange_Exception()
        {
            var items   = new OptomizedObservableCollection <IDataListItem>();
            var scalars = new OptomizedObservableCollection <IDataListItem>();

            scalars = null;
            items.AddRange(scalars);
        }
        private OptomizedObservableCollection<IDataListItem> GetInputTestDataDataNames()
        {
            const int numberOfRecords = 6;
            const int numberOfRecordFields = 2;
            OptomizedObservableCollection<IDataListItem> items = new OptomizedObservableCollection<IDataListItem>();
            items.AddRange(GetDataListItemScalar());
            items.AddRange(CreateTestDataListItemRecords(numberOfRecords, numberOfRecordFields));

            return items;
        }