コード例 #1
0
        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;
        }
コード例 #2
0
        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;
        }