void SetAutodetectLabel() { var sbInfo = new StringBuilder(); if (pluginTypeCombo.Active == 0) // autodetect { var detectedType = project.DetectMcNeelProjectType(); if (detectedType != null) { sbInfo.Append($"Type: <b>{GetTypeLabel(detectedType.Value)}</b>"); } } var detectedVersion = project.GetRhinoVersion(); if (detectedVersion != null) { if (sbInfo.Length > 0) { sbInfo.Append(", "); } sbInfo.Append($"Version: <b>{detectedVersion.Value}</b>"); } if (sbInfo.Length > 0) { sbInfo.Insert(0, "Detected "); } autodetectedTypeLabel.Markup = sbInfo.ToString(); }