示例#1
0
        internal Venue(VenueService.Venue v)
        {
            identifier = v.Identifier;
            name = v.Name;
            icon = Utilities.ByteToBitmap(v.Icon);

            // Trim the IPAddress, because whitespace isn't handled in .NET 2.0, but was in .NET 1.1
            string trimmedIP = v.IPAddress.Trim();
            endPoint = new IPEndPoint(IPAddress.Parse(trimmedIP), v.Port);
            pwStatus = v.PWStatus;
            compatibilityVenueType = v.VenueType;
        }
示例#2
0
        private void CreateInvalidVenue(VenueList venues, VenueService.Venue v)
        {
            eventLog.WriteEntry(string.Format("Invalid venue: {0}", v.Name),
                EventLogEntryType.Warning, ConferenceEventLog.ID.Error);

            venues.Add(new ConferenceXP.Venue(v.Name, new IPEndPoint(IPAddress.Any, 0),
                VenueType.Invalid, Utilities.ByteToBitmap(v.Icon)));
        }