/// <summary> /// Accepts drop of a tree node, in a drag & drop operation /// </summary> /// <param name="sourceNode"></param> public override void AcceptDrop(BaseTreeNode sourceNode) { base.AcceptDrop(sourceNode); if (sourceNode is EnumerationTreeNode) { EnumerationTreeNode enumerationTreeNode = sourceNode as EnumerationTreeNode; Enum enumeration = enumerationTreeNode.Item; enumerationTreeNode.Delete(); Item.appendEnumerations(enumeration); } else if (sourceNode is ParagraphTreeNode) { ParagraphTreeNode node = sourceNode as ParagraphTreeNode; Paragraph paragraph = node.Item; Enum enumeration = Enum.CreateDefault(Item.Enumerations); Item.appendEnumerations(enumeration); enumeration.FindOrCreateReqRef(paragraph); } }
public void AddHandler(object sender, EventArgs args) { Item.appendEnumerations(Enum.CreateDefault(Item.Enumerations)); }