Ignore:
Timestamp:
Mar 8, 2012, 11:19:12 PM (13 years ago)
Author:
bayral
Message:

new project for windows live publish plugin
Well advance single uploader

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/PiwigoLib/PiwigoUpload/Helper/MainAppHelper.cs

    r12262 r13520  
    4040        internal static void BuildAlbumTree(System.Windows.Forms.TreeView aTree, LocalAlbumList lstAlbum)
    4141        {
    42             if (aTree.Nodes.Count > 0)
     42            System.Windows.Forms.TreeNode root = aTree.Nodes[0];
     43            if (root.Nodes.Count > 0)
    4344            {
    44                 aTree.Nodes.Clear();
     45                root.Nodes.Clear();
    4546            }
     47            //System.Windows.Forms.TreeNode root = new System.Windows.Forms.TreeNode("Albums", 0, 0);
     48            //aTree.Nodes.Add(root);
     49            //ModelManager.Instance.SelectedNode = root;
     50            //aTree.SelectedNode = root;
    4651
    47             System.Windows.Forms.TreeNode root = new System.Windows.Forms.TreeNode("Albums", 0, 0);
    48             aTree.Nodes.Add(root);
    49            
    5052            foreach (LocalAlbum Alb in lstAlbum)
    5153                {
    5254                root.Nodes.Add(buildAlbumToNode(Alb));
    5355                }
     56
     57            aTree.ExpandAll();
    5458        }
    5559
Note: See TracChangeset for help on using the changeset viewer.