Пример #1
0
        public void Dispose()
        {
            if (events != null)
            {
                events.Dispose();
            }
            if (eventDates != null)
            {
                eventDates.Dispose();
            }
            if (eventWaves != null)
            {
                eventWaves.Dispose();
            }
            if (eventSponsors != null)
            {
                eventSponsors.Dispose();
            }
            if (eventTemplates != null)
            {
                eventTemplates.Dispose();
            }
            if (eventTemplate_PayScales != null)
            {
                eventTemplate_PayScales.Dispose();
            }
            if (eventLeads != null)
            {
                eventLeads.Dispose();
            }
            if (registrations != null)
            {
                registrations.Dispose();
            }
            if (regions != null)
            {
                regions.Dispose();
            }
            if (purchaseItems != null)
            {
                purchaseItems.Dispose();
            }
            if (eventFees != null)
            {
                eventFees.Dispose();
            }
            if (users != null)
            {
                users.Dispose();
            }
            if (roles != null)
            {
                roles.Dispose();
            }
            if (teams != null)
            {
                teams.Dispose();
            }

            GC.SuppressFinalize(this);
        }