Gets or sets a Boolean value that indicates whether the application has been started. This property returns true if InitApplication has been called. If InitApplication has not been called or ShutDown was called this property will return false.
public bool IsStarted {get; set;}
Public Property IsStarted As Boolean
Boolean value that indicates whether the application has been started.
Value | Meaning |
true | InitApplication has been called. |
false | InitApplication has not been called or ShutDown has been called. |
using Leadtools;
using Leadtools.Examples;
using Leadtools.Medical.WebViewer.ExternalControl;
private void MedicalWebViewerExternalController_IsStarted()
{
string applicationName;
string version;
int externalControlPort = 500;
string viewerUrl = "http://localhost/MedicalViewer/";
MedicalWebViewerExternalController controller = new MedicalWebViewerExternalController(viewerUrl);
// ViewerURL should return what was passed into the constructor
Uri uri1 = new Uri(viewerUrl);
Uri uri2 = new Uri(controller.ViewerURL);
Debug.Assert(Uri.Compare(uri1, uri2, UriComponents.AbsoluteUri, UriFormat.Unescaped, StringComparison.OrdinalIgnoreCase) == 0);
controller.Timeout = 30;
// IsStarted should be 'false' because InitApplication has not been called
Debug.Assert(controller.IsStarted == false);
controller.InitApplication(out applicationName, out version, externalControlPort);
// IsStarted should be 'true' because InitApplication has been called
Debug.Assert(controller.IsStarted == true);
controller.CloseApplication();
// Shutdown the command queue
controller.Shutdown();
// IsStarted should be 'false' because Shutdown has been called
Debug.Assert(controller.IsStarted == false);
}
Imports Leadtools
Imports Leadtools.Examples
Imports Leadtools.Medical.WebViewer.ExternalControl
Private Sub MedicalWebViewerExternalController_IsStarted()
Dim applicationName As String
Dim version As String
Dim externalControlPort As Integer = 500
Dim viewerUrl As String = "http://localhost/MedicalViewer/"
Dim controller As New MedicalWebViewerExternalController(viewerUrl)
' ViewerURL should return what was passed into the constructor
Dim uri1 As New Uri(viewerUrl)
Dim uri2 As New Uri(controller.ViewerURL)
Debug.Assert(Uri.Compare(uri1, uri2, UriComponents.AbsoluteUri, UriFormat.Unescaped, StringComparison.OrdinalIgnoreCase) = 0)
controller.Timeout = 30
' IsStarted should be 'false' because InitApplication has not been called
Debug.Assert(controller.IsStarted = False)
applicationName = String.Empty
version = String.Empty
controller.InitApplication(applicationName, version, externalControlPort)
' IsStarted should be 'true' because InitApplication has been called
Debug.Assert(controller.IsStarted = True)
controller.CloseApplication()
' Shutdown the command queue
controller.Shutdown()
' IsStarted should be 'false' because Shutdown has been called
Debug.Assert(controller.IsStarted = False)
End Sub
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.