protected override void InitializeChild(TreeNode parent, TreeNode child, object context)
        {
            base.InitializeChild(parent, child, context);
            var smoTreeNode = child as SmoTreeNode;

            if (smoTreeNode != null && smoTreeNode.SmoObject != null &&
                DatabasesCustomNodeHelper.GetDatabaseIsUnavailable(smoTreeNode.SmoObject, parent.GetContextAs <SmoQueryContext>(), CachedSmoProperties))
            {
                child.IsAlwaysLeaf = true;
            }
        }
 public override string GetNodeStatus(object smoObject, SmoQueryContext smoContext)
 {
     return(DatabasesCustomNodeHelper.GetStatus(smoObject, smoContext, CachedSmoProperties));
 }
 public override string GetNodeStatus(object context)
 {
     return(DatabasesCustomNodeHelper.GetStatus(context));
 }