/// <summary> /// Initializes a new instance of the <see cref="NPCChatDialogViewNode"/> class. /// </summary> /// <param name="parent">The parent.</param> /// <param name="handledItem">The handled item.</param> internal NPCChatDialogViewNode(TreeNode parent, object handledItem) { Tag = handledItem; UpdateChatItemType(); parent.Nodes.Add(this); TreeViewCasted.NotifyNodeCreated(this); UpdateText(); }
/// <summary> /// Initializes a new instance of the <see cref="NPCChatDialogViewNode"/> class. /// </summary> /// <param name="treeView">The tree view.</param> /// <param name="handledItem">The handled item.</param> internal NPCChatDialogViewNode(TreeView treeView, object handledItem) { Tag = handledItem; UpdateChatItemType(); treeView.Nodes.Add(this); TreeViewCasted.NotifyNodeCreated(this); Update(true); }