public static ToolbarViewModel Build( )
            {
                if (null == _instance)
                {
                    _instance = new ToolbarViewModel( );

                    ToolbarGroup framesGroup = new ToolbarGroup( )
                    {
                        Name = "WADO-RS-Frames*"
                    };
                    ToolbarGroup WadoUriGroup = new ToolbarGroup( )
                    {
                        Name = "WADO-URI"
                    };


                    framesGroup.Add(new ToolbarInput("frame list (e.g. 1,4,6)", "text", "data-rs-frames-input"));
                    framesGroup.Add(new ToolbarLink("Uncompressed", "data-rs-frames", MimeTypes.UncompressedData));

                    WadoUriGroup.Add(new ToolbarInput("single frame number (optional)", "text", "data-uri-frame-input"));
                    WadoUriGroup.Add(new ToolbarLink("DICOM", "data-uri-instance", MimeTypes.DICOM));

                    _instance.Add(framesGroup);
                    _instance.Add(WadoUriGroup);
                }

                return(_instance);
            }
示例#2
0
            public static ToolbarViewModel Build( )
            {
                if (null == _instance)
                {
                    _instance = new ToolbarViewModel( );
                    ToolbarGroup metadataGroup = new ToolbarGroup( )
                    {
                        Name = "WADO-RS-Metadata"
                    };
                    ToolbarGroup instanceGroup = new ToolbarGroup( )
                    {
                        Name = "WADO-RS-Instance*"
                    };
                    ToolbarGroup framesGroup = new ToolbarGroup( )
                    {
                        Name = "WADO-RS-Frames*"
                    };
                    ToolbarGroup WadoUriGroup = new ToolbarGroup( )
                    {
                        Name = "WADO-URI"
                    };

                    metadataGroup.Add(new ToolbarLink("{..}", "data-rs-metadata", MimeTypes.Json));
                    metadataGroup.Add(new ToolbarLink("XML", "data-rs-metadata", MimeTypes.xmlDicom));

                    instanceGroup.Add(new ToolbarLink("DICOM", "data-rs-instance", MimeTypes.DICOM));
                    instanceGroup.Add(new ToolbarLink("Uncompressed", "data-rs-instance", MimeTypes.UncompressedData));
                    //instanceGroup.Add ( new ToolbarLink ( "Jpg", "data-rs-instance", MimeTypes.Jpeg )) ;

                    framesGroup.Add(new ToolbarInput("frame list (e.g. 1,4,6)", "text", "data-rs-frames-input"));
                    framesGroup.Add(new ToolbarLink("Uncompressed", "data-rs-frames", MimeTypes.UncompressedData));
                    //framesGroup.Add ( new ToolbarLink ( "Jpg", "data-rs-frames", MimeTypes.Jpeg )) ;

                    WadoUriGroup.Add(new ToolbarInput("single frame number (optional)", "text", "data-uri-frame-input"));
                    WadoUriGroup.Add(new ToolbarLink("DICOM", "data-uri-instance", MimeTypes.DICOM));

                    _instance.Add(metadataGroup);
                    _instance.Add(instanceGroup);
                    _instance.Add(framesGroup);
                    _instance.Add(WadoUriGroup);
                }

                return(_instance);
            }