/// <summary> /// Remove an array of TreeNodes contained in MWTreeNodeWrappers. The TreeNodes are also removed from the SelNodes property, the /// CheckedNodes property and/or the SelNode property. /// </summary> /// <param name="amwtnw">MWTreeNodeWrapper array whose TreeNodes should be removed.</param> /// <returns>True if at least one TreeNode from the MWTreeNodeWrappers was removed or false if no TreeNodes were removed.</returns> public bool RemoveNodes(MWTreeNodeWrapper[] amwtnw) { bool bRetVal = false; if(amwtnw != null) { foreach(MWTreeNodeWrapper mwtnw in amwtnw) { if(RemoveNode(mwtnw)) { bRetVal = true; } } } return bRetVal; }
/// <summary> /// Select the TreeNode in the MWTreeNodeWrapper object supplied. /// </summary> /// <param name="mwtnw">MWTreeNodeWrapper containing TreeNode that should be selected.</param> public static void Select(MWTreeNodeWrapper mwtnw) { mwtnw.Node.ImageIndex = mwtnw.SelectedImageIndex; }
/// <summary> /// Remove one TreeNode contained in an MWTreeNodeWrapper. The TreeNode is also removed from the SelNodes property, the CheckedNodes /// property and/or the SelNode property. /// </summary> /// <param name="mwtnw">MWTreeNodeWrapper to remove.</param> /// <returns>True if the TreeNode in the MWTreeNodeWrapper was removed or false otherwise.</returns> public bool RemoveNode(MWTreeNodeWrapper mwtnw) { bool bRetVal = false; if(mwtnw != null) { bRetVal = RemoveNode(mwtnw.Node); } return bRetVal; }