Changeset 13520 for extensions/PiwigoLib/PiwigoUpload/Helper
- Timestamp:
- Mar 8, 2012, 11:19:12 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/PiwigoLib/PiwigoUpload/Helper/MainAppHelper.cs
r12262 r13520 40 40 internal static void BuildAlbumTree(System.Windows.Forms.TreeView aTree, LocalAlbumList lstAlbum) 41 41 { 42 if (aTree.Nodes.Count > 0) 42 System.Windows.Forms.TreeNode root = aTree.Nodes[0]; 43 if (root.Nodes.Count > 0) 43 44 { 44 aTree.Nodes.Clear();45 root.Nodes.Clear(); 45 46 } 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; 46 51 47 System.Windows.Forms.TreeNode root = new System.Windows.Forms.TreeNode("Albums", 0, 0);48 aTree.Nodes.Add(root);49 50 52 foreach (LocalAlbum Alb in lstAlbum) 51 53 { 52 54 root.Nodes.Add(buildAlbumToNode(Alb)); 53 55 } 56 57 aTree.ExpandAll(); 54 58 } 55 59
Note: See TracChangeset
for help on using the changeset viewer.