Example #1
0
        public override System.Collections.Generic.IEnumerable <TEntity> RemoveRange(System.Collections.Generic.IEnumerable <TEntity> entities)
        {
            if (entities == null)
            {
                throw new System.ArgumentNullException("entities");
            }
            var items = entities.ToList();

            foreach (var entity in items)
            {
                _data.Remove(entity);
            }
            return(items);
        }
Example #2
0
 /// <summary>
 ///
 /// </summary>
 private void Remove()
 {
     if (DBDevelopClientApi.DevelopServiceHelper.Helper.RemoveDatabasePermission(this.Database, CurrentSelected.Name))
     {
         mPermissions.Remove(CurrentSelected);
     }
 }
Example #3
0
        private void OnDelTagButtonClicked(object sender, RoutedEventArgs e)
        {
            Tag t = (Tag)lbTags.SelectedItem;

            if (t != null)
            {
                tags.Remove(t);
                SaveTagsToFile();
                foreach (AudioFile f in audioFiles)
                {
                    f.Tags.Remove(t.ID);
                }
            }
            MarkDirty(true);
        }
Example #4
0
 /// <summary>
 /// Removes the first occurrence of a specific object from the <see cref="T:System.Collections.Generic.List`1" />.
 /// </summary>
 /// <returns><c>true</c> if <paramref name="item" /> is successfully removed; otherwise, <c>false</c>.  This method also returns <c>false</c> if <paramref name="item" /> was not found in the <see cref="T:System.Collections.Generic.List`1" />.
 /// </returns>
 /// <param name="item">
 /// The object to remove from the <see cref="T:System.Collections.Generic.List`1" />. The value can be <c>null</c> for reference types.
 /// </param>
 public bool Remove(TBase item)
 {
     return(_innerCollection.Remove((TActual)item));
 }