private static void RemoveDependency(IDependencyBean receiver, DefaultEditParams editParams) { RelationEditParameters rep = editParams as RelationEditParameters; if (rep == null) { return; } receiver.RemoveDependency((Dependency)rep.Related); }
public IUndoableEdit CreateRemoveDependencyEdit(IDependencyBean owner, Dependency dep) { return(new DefaultEdit <IDependencyBean>(owner, RemoveDependency, AddDependency, dep)); }