private void CreateSystemDatabaseNodes(ObjectExplorerNode model)
 {
     if (!(model.Data is Server server))
     {
         return;
     }
     foreach (Database db in server.Databases)
     {
         if (systemDatabaseNames.Contains(db.Name)) //TODO - This is probably not the most elegant way to handle this...
         {
             DataSource.Add(ObjectExplorerNodeFactory.CreateDatabaseNode(GetNewNodeId(), model.Id, db));
         }
     }
 }
        private void CreateUserDatabaseNodes(ObjectExplorerNode model)
        {
            if (!(model.Data is Server server))
            {
                return;
            }
            if (server.Databases.Count <= 0)
            {
                CreateEmptyNode(model);
                return;
            }

            DataSource.Add(ObjectExplorerNodeFactory.CreateFolderNode(GetNewNodeId(), GlobalStrings.FolderTypes.SystemDatabaseFolder, model));

            foreach (Database db in server.Databases) //TODO - This is probably not the most elegant way to handle this...
            {
                if (!systemDatabaseNames.Contains(db.Name))
                {
                    DataSource.Add(ObjectExplorerNodeFactory.CreateDatabaseNode(GetNewNodeId(), model.Id, db));
                }
            }
        }