private void ListChildren(ChromeItem folder, TreeNode root) { if (folder == null) { return; } foreach (var res in folder.children) { Digest(res); if (res.type == "folder") { var node = new TreeNode(); node.Text = res.name; root.Nodes.Add(node); ListChildren(res, node); continue; } if (res.type == "url") { var node = new TreeNode(); node.Text = res.name; root.Nodes.Add(node); continue; } } }
private void Digest(ChromeItem item) { Buffer.Append(item.date_added).Append(item.id).Append(item.name).Append(item.type).Append(item.url); }