예제 #1
0
파일: Pool.cs 프로젝트: waynz0r/xenadmin
        public string LicenseString()
        {
            var hosts = new List <Host>(Connection.Cache.Hosts);

            foreach (Host.Edition edition in Enum.GetValues(typeof(Host.Edition)))
            {
                Host.Edition edition1 = edition;
                Host         host     = hosts.Find(h => Host.GetEdition(h.edition) == edition1);

                if (host != null)
                {
                    return(Helpers.GetFriendlyLicenseName(host));
                }
            }
            return(PropertyManager.GetFriendlyName("Label-host.edition-free"));
        }