private TreeNode indexedNode(IRegistryQuerier registry, CkanModule module, RelationshipType relationship, bool compatible) { int icon = (int)relationship + 1; string suffix = compatible ? "" : $" ({registry.CompatibleGameVersions(module.identifier)})"; return(new TreeNode($"{module.name} {module.version}{suffix}", icon, icon) { Name = module.identifier, ToolTipText = relationship.ToString(), Tag = module, ForeColor = compatible ? SystemColors.WindowText : Color.Red, }); }