public string GetShareLink() { if (Type == ProjectType.Xray) { StringBuilder strBuilder = new StringBuilder(); XraySettings.Types.ForEach(type => { var link = ShareLink.Build(type, XraySettings); strBuilder.AppendLine(link); }); return(strBuilder.ToString()); } if (Type == ProjectType.TrojanGo) { return(ShareLink.BuildTrojanGo(TrojanGoSettings)); } if (Type == ProjectType.NaiveProxy) { return(ShareLink.BuildNaiveProxy(NaiveProxySettings)); } return(string.Empty); }