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

Create() public static method

Creates either a Sop or ImageSop based on the SopClass of the given ISopDataSource.
public static Create ( ISopDataSource dataSource ) : Sop
dataSource ISopDataSource
return Sop
		public static Sop Create(ISopDataSource dataSource)
		{
		    return dataSource.IsImage ? new ImageSop(dataSource) : new Sop(dataSource);
		}

Same methods

Sop::Create ( string filename ) : Sop

Usage Example

Ejemplo n.º 1
0
 /// <summary>
 /// Creates a <see cref="Sop"/> from the given <see cref="ISopDataSource"/>.
 /// </summary>
 protected virtual Sop CreateSop(ISopDataSource dataSource)
 {
     return(Sop.Create(dataSource));
 }