BlockStudio.TreeNodes.TreeNodeManager.UpdateAccountNode C# (CSharp) Method

UpdateAccountNode() public static method

public static UpdateAccountNode ( Account account ) : void
account BlockStudio.Project.Account
return void
        public static void UpdateAccountNode(Account account)
        {
            var list = TreeView.Nodes.Find(NodeType.Account.ToString(), true);
            var accountNodes = list.Cast<AccountNode>().Where(x => x.Account.Address == account.Address).ToList();
            foreach (var accountNode in accountNodes)
            {
                accountNode.ImageIndex = account.ImageIconIndex;
                accountNode.SelectedImageIndex = account.ImageIconIndex;
            }
        }