private static void RemoveElement(IElementsBean receiver, DefaultEditParams editParams) { RelationEditParameters rep = editParams as RelationEditParameters; if (rep == null) { return; } receiver.RemoveElement((Element)rep.Related); }
public Element(IElementsBean parent) { if (parent == null) { return; } parent.AddElement(this); if (parent is TestCasesStructure) { position = (parent as TestCasesStructure).GetNewElementPosition(); name = (parent as TestCasesStructure).GetNewElementName(); } }
public IUndoableEdit CreateRemoveElementEdit(IElementsBean owner, Element element) { return(new DefaultEdit <IElementsBean>(owner, RemoveElement, AddElement, element)); }