public static void RebuildTree() { var connectionNode = new ConnectionNode(); connectionNode.Text = BlockStudioProjectService.BlockStudioProject.Name; connectionNode.Name = NodeType.Connection.ToString(); connectionNode.Nodes.Add(new AccountParentNode() { Text = "Accounts" }); var solidifyNode = new SolcParentTreeNode() {Text = "Solidify compiler files"}; solidifyNode.Name = NodeType.SolcParent.ToString(); connectionNode.Nodes.Add(solidifyNode); TreeView.Nodes.Insert(TreeView.Nodes.Count, connectionNode); TreeView.SelectedNode = connectionNode; }
public static void RebuildTree() { var connectionNode = new ConnectionNode(); connectionNode.Text = BlockStudioProjectService.BlockStudioProject.Name; connectionNode.Name = NodeType.Connection.ToString(); connectionNode.Nodes.Add(new AccountParentNode() { Text = "Accounts" }); var solidifyNode = new SolcParentTreeNode() { Text = "Solidify compiler files" }; solidifyNode.Name = NodeType.SolcParent.ToString(); connectionNode.Nodes.Add(solidifyNode); TreeView.Nodes.Insert(TreeView.Nodes.Count, connectionNode); TreeView.SelectedNode = connectionNode; }