예제 #1
0
        private static void RemoveElement(IElementsBean receiver, DefaultEditParams editParams)
        {
            RelationEditParameters rep = editParams as RelationEditParameters;

            if (rep == null)
            {
                return;
            }
            receiver.RemoveElement((Element)rep.Related);
        }
예제 #2
0
 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();
     }
 }
예제 #3
0
 public IUndoableEdit CreateRemoveElementEdit(IElementsBean owner, Element element)
 {
     return(new DefaultEdit <IElementsBean>(owner, RemoveElement, AddElement, element));
 }