Example #1
0
        private static void RemoveDependency(IDependencyBean receiver, DefaultEditParams editParams)
        {
            RelationEditParameters rep = editParams as RelationEditParameters;

            if (rep == null)
            {
                return;
            }
            receiver.RemoveDependency((Dependency)rep.Related);
        }
Example #2
0
 public IUndoableEdit CreateRemoveDependencyEdit(IDependencyBean owner, Dependency dep)
 {
     return(new DefaultEdit <IDependencyBean>(owner, RemoveDependency, AddDependency, dep));
 }