public DataExplorer(Application applicationReference)
        {
            BaseConstructor(applicationReference);

            rootNode = new DataExplorerNodeSet(applicationReference);

            return;
        }
        public override Boolean Load(Int64 forId)
        {
            Boolean success = false;

            success = base.Load(forId);

            System.Data.DataTable rootNodeTable = application.EnvironmentDatabase.SelectDataTable("SELECT * FROM DataExplorerNode WHERE DataExplorerId = " + Id.ToString() + " AND ParentDataExplorerNodeId IS NULL");

            if (rootNodeTable.Rows.Count == 1)
            {
                rootNode = new DataExplorerNodeSet(application);

                rootNode.DataExplorer = this;

                success = rootNode.Load(Convert.ToInt64(rootNodeTable.Rows[0]["DataExplorerNodeId"]));
            }

            return(success);
        }