/// <summary> /// Creates a new step /// </summary> /// <param name="step"></param> /// <returns></returns> public StepTreeNode createStep(DataDictionary.Tests.Step step) { step.Enclosing = Item; StepTreeNode retVal = new StepTreeNode(step); Item.appendSteps(step); Nodes.Add(retVal); return(retVal); }
/// <summary> /// Handles the drop event /// </summary> /// <param name="sourceNode"></param> public override void AcceptDrop(BaseTreeNode sourceNode) { base.AcceptDrop(sourceNode); if (sourceNode is StepTreeNode) { StepTreeNode step = sourceNode as StepTreeNode; step.Delete(); Item.appendSteps(step.Item); } }
/// <summary> /// Handles the drop event /// </summary> /// <param name="SourceNode"></param> public override void AcceptDrop(BaseTreeNode SourceNode) { base.AcceptDrop(SourceNode); if (SourceNode is StepTreeNode) { StepTreeNode step = SourceNode as StepTreeNode; step.Delete(); createStep(step.Item); } }