private MeetingWebinarIndex(MeetingCache.MeetingCacheWebinar meetingCacheWebinar, bool isAdmin, int userId) : base(meetingCacheWebinar, isAdmin, userId) { FillCapacity = meetingCacheWebinar.FillCapacity; }
private MeetingSkoleniDavidaKotaskaIndex(MeetingCache.MeetingCacheSkoleniDavidaKotaska meetingCacheSkoleniDavidaKotaska, bool isAdmin, int userId) : base(meetingCacheSkoleniDavidaKotaska, isAdmin, userId) { City = meetingCacheSkoleniDavidaKotaska.City; Street = meetingCacheSkoleniDavidaKotaska.AddressLine1; Title = meetingCacheSkoleniDavidaKotaska.Title; Price = meetingCacheSkoleniDavidaKotaska.Price.HasValue && meetingCacheSkoleniDavidaKotaska.CurrencyType.HasValue ? String.Format("{0:N0} {1}", meetingCacheSkoleniDavidaKotaska.Price.GetValueOrDefault(), meetingCacheSkoleniDavidaKotaska.CurrencyType) : NullDisplayText; }
private MeetingBusinessInfoIndex(MeetingCache.MeetingCacheBusinessInfo meetingCacheBusinessInfo, bool isAdmin, int userId) : base(meetingCacheBusinessInfo, isAdmin, userId) { City = meetingCacheBusinessInfo.City; Street = meetingCacheBusinessInfo.AddressLine1; }
private MeetingSetkaniTymuIndex(MeetingCache.MeetingCacheSetkaniTymu meetingCacheSetkaniTymu, bool isAdmin, int userId) : base(meetingCacheSetkaniTymu, isAdmin, userId) { City = meetingCacheSetkaniTymu.City; Street = meetingCacheSetkaniTymu.AddressLine1; MeetingTitleType = meetingCacheSetkaniTymu.MeetingTitleType; Price = meetingCacheSetkaniTymu.Price.HasValue && meetingCacheSetkaniTymu.CurrencyType.HasValue ? String.Format("{0:N0} {1}", meetingCacheSetkaniTymu.Price.GetValueOrDefault(), meetingCacheSetkaniTymu.CurrencyType) : NullDisplayText; }
private MeetingMspEveningIndex(MeetingCache.MeetingCacheMspEvening meetingCacheMspEvening, bool isAdmin, int userId) : base(meetingCacheMspEvening, isAdmin, userId) { City = meetingCacheMspEvening.City; Street = meetingCacheMspEvening.AddressLine1; }
protected MeetingIndex(MeetingCache.MeetingCacheBase meetingCacheBase, bool isAdmin, int userId) { MeetingId = meetingCacheBase.MeetingId; Date = meetingCacheBase.Started; Day = meetingCacheBase.Started.ToString("ddd", CultureInfo.CreateSpecificCulture("cs-CZ")); Time = meetingCacheBase.Started.ToString("HH:mm"); Organizer = meetingCacheBase.PrimaryAndSecondaryOrganizerFullName; FreeCapacity = meetingCacheBase.Capacity - meetingCacheBase.FillCapacity; Lecturer = meetingCacheBase.Lecturer; Access = isAdmin || meetingCacheBase.OrganizerId == userId || meetingCacheBase.SecondaryOrganizerId == userId ? Access.Write : Access.Read; Private = meetingCacheBase.Private; }