internal void OnTreeNodeDelete(FileTreeNode node) { ElementDeleted?.Invoke(node, new SFMEventArgs() { element = node.Value }); }
public void Delete(int id) { var element = List.Single(a => a.Id == id); List.Remove(element); ElementDeleted.Invoke(element); }
public void Delete(object keyValue) { AssertKeyExists(keyValue); var removed = GetByKey(keyValue); RemoveFromCollection(keyValue); ElementDeleted?.Invoke(removed); }
public void Delete() { Document.DeleteItem(this); ElementDeleted?.Invoke(this, new EventArgs()); }