Exemple #1
0
 /// <summary>
 /// Handles a drop event
 /// </summary>
 /// <param name="SourceNode"></param>
 public override void AcceptDrop(BaseTreeNode SourceNode)
 {
     if (SourceNode is SpecificationView.ParagraphTreeNode)
     {
         SpecificationView.ParagraphTreeNode paragraphTreeNode = (SpecificationView.ParagraphTreeNode)SourceNode;
         CreateReqRef(paragraphTreeNode.Item.FullId);
     }
     else if (SourceNode is ReqRefTreeNode)
     {
         ReqRefTreeNode reqRefTreeNode = (ReqRefTreeNode)SourceNode;
         CreateReqRef(reqRefTreeNode.Item.Paragraph.FullId);
     }
 }
Exemple #2
0
        /// <summary>
        ///     Handles a drop event
        /// </summary>
        /// <param name="sourceNode"></param>
        public override void AcceptDrop(BaseTreeNode sourceNode)
        {
            ParagraphTreeNode paragraphTreeNode = sourceNode as ParagraphTreeNode;

            if (paragraphTreeNode != null)
            {
                Item.FindOrCreateReqRef(paragraphTreeNode.Item);
            }
            else
            {
                ReqRefTreeNode reqRefTreeNode = sourceNode as ReqRefTreeNode;
                if (reqRefTreeNode != null)
                {
                    Item.FindOrCreateReqRef(reqRefTreeNode.Item.Paragraph);
                }
            }
        }