//~GalleryItems()
        //{
        //    Dispose(false);
        //}

        protected virtual void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (_collectionChanged != null)
                {
                    _collectionChanged.ChangedEvent -= CollectionChanged_ChangedEvent;
                    _collectionChanged.Detach();
                }
            }
        }
Esempio n. 2
0
        //~QatCommands()
        //{
        //    Dispose(false);
        //}


        private void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (_collectionChanged != null)
                {
                    _collectionChanged.ChangedEvent -= CollectionChanged_ChangedEvent;
                    _collectionChanged.Detach();
                }
            }
        }