Exemplo n.º 1
0
 /// <summary>
 /// Deselect the TreeNode in the MWTreeNodeWrapper object supplied.
 /// </summary>
 /// <param name="mwtnw">MWTreeNodeWrapper containing TreeNode that should be deselected.</param>
 public static void Deselect(MWTreeNodeWrapper mwtnw)
 {
   mwtnw.Node.ImageIndex = mwtnw.ImageIndex;
   //mwtnw.Node.SelectedImageIndex = mwtnw.SelectedImageIndex;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Reselect the TreeNode in the MWTreeNodeWrapper object supplied.
 /// </summary>
 /// <param name="mwtnw">MWTreeNodeWrapper containing TreeNode that should be selected.</param>
 public static void Reselect(MWTreeNodeWrapper mwtnw)
 {
   mwtnw.Node.ImageIndex = mwtnw.ImageIndex;
 }
Exemplo n.º 3
0
    /// <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;
    }
Exemplo n.º 4
0
    /// <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;
    }
Exemplo n.º 5
0
 /// <summary>
 /// Deselect the TreeNode in the MWTreeNodeWrapper object supplied.
 /// </summary>
 /// <param name="mwtnw">MWTreeNodeWrapper containing TreeNode that should be deselected.</param>
 public static void Deselect(MWTreeNodeWrapper mwtnw)
 {
     mwtnw.Node.ImageIndex = mwtnw.ImageIndex;
     //mwtnw.Node.SelectedImageIndex = mwtnw.SelectedImageIndex;
 }
Exemplo n.º 6
0
 /// <summary>
 /// Reselect the TreeNode in the MWTreeNodeWrapper object supplied.
 /// </summary>
 /// <param name="mwtnw">MWTreeNodeWrapper containing TreeNode that should be selected.</param>
 public static void Reselect(MWTreeNodeWrapper mwtnw)
 {
     mwtnw.Node.ImageIndex = mwtnw.ImageIndex;
 }