Esempio n. 1
0
        /// <summary>
        /// Helper method for loading of the list from the data source
        /// </summary>
        /// <param name="items">The list of items returned by the data source</param>
        private Task LoadObjectsAsync(IList <DisallowedFragmentDTO> items)
        {
            DisallowedFragmentInfo info;

            foreach (var item in items)
            {
                info = new DisallowedFragmentInfo(item);
                _list.Add(info);
            }

            return(Task.CompletedTask);
        }
Esempio n. 2
0
 /// <summary>
 /// Support addition of new items to the underlying list for use in cloning
 /// </summary>
 /// <param name="fragmentInfo">The disallowed fragment info to be added to the list</param>
 private void Add(DisallowedFragmentInfo fragmentInfo)
 {
     _list.Add(fragmentInfo);
 }