예제 #1
0
        //~GalleryItems()
        //{
        //    Dispose(false);
        //}

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


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