Esempio n. 1
0
 internal void OnTreeNodeDelete(FileTreeNode node)
 {
     ElementDeleted?.Invoke(node, new SFMEventArgs()
     {
         element = node.Value
     });
 }
Esempio n. 2
0
        public void Delete(int id)
        {
            var element = List.Single(a => a.Id == id);

            List.Remove(element);
            ElementDeleted.Invoke(element);
        }
Esempio n. 3
0
        public void Delete(object keyValue)
        {
            AssertKeyExists(keyValue);
            var removed = GetByKey(keyValue);

            RemoveFromCollection(keyValue);
            ElementDeleted?.Invoke(removed);
        }
Esempio n. 4
0
 public void Delete()
 {
     Document.DeleteItem(this);
     ElementDeleted?.Invoke(this, new EventArgs());
 }