Esempio n. 1
0
        public async Task AddAsync(params T[] items)
        {
            Throw.IfNullOrEmpty(() => items);

            await _dataProviderWrapper.AddAsync(items);

            AddedEvent?.Invoke(items);
        }
Esempio n. 2
0
        /// <summary>
        /// Смотри <see cref="IDataset.Add"/>
        /// </summary>
        public void Add(IDatasetItem value)
        {
            _DataSet.Add((DatasetItem)value);
            value.EventChanged += DatasetItemOnEventChanged;

            AddedEvent?.Invoke(this, value);

            ApplyDatasetElement();
        }