ClearCanvas.ImageViewer.StudyManagement.Sop.Dispose C# (CSharp) Method

Dispose() protected method

Disposes all resources being used by this Sop.
protected Dispose ( bool disposing ) : void
disposing bool
return void
		protected virtual void Dispose(bool disposing)
		{
			if (disposing && _dataSource != null)
			{
				_dataSource.Dispose();
				_dataSource = null;
			}
		}

Usage Example

Ejemplo n.º 1
0
        /// <summary>
        /// Adds a <see cref="Sop"/> to the <see cref="StudyTree"/>.
        /// </summary>
        public bool AddSop(Sop sop)
        {
            Platform.CheckForNullReference(sop, "sop");

            //disable
            //if (!this.SopValidationDisabled)
            //    sop.Validate();

            if (_sops.ContainsKey(sop.SopInstanceUid))
            {
                sop.Dispose();
                return(false);
            }

            AddPatient(sop);
            AddStudy(sop);
            AddSeries(sop);
            _sops[sop.SopInstanceUid] = sop;

            return(true);
        }
All Usage Examples Of ClearCanvas.ImageViewer.StudyManagement.Sop::Dispose