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 constructorUri 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 calledDebug.Assert(controller.IsStarted == false);controller.InitApplication(out applicationName, out version, externalControlPort);// IsStarted should be 'true' because InitApplication has been calledDebug.Assert(controller.IsStarted == true);controller.CloseApplication();// Shutdown the command queuecontroller.Shutdown();// IsStarted should be 'false' because Shutdown has been calledDebug.Assert(controller.IsStarted == false);}
Imports LeadtoolsImports Leadtools.ExamplesImports Leadtools.Medical.WebViewer.ExternalControlPrivate Sub MedicalWebViewerExternalController_IsStarted()Dim applicationName As StringDim version As StringDim externalControlPort As Integer = 500Dim viewerUrl As String = "http://localhost/MedicalViewer/"Dim controller As New MedicalWebViewerExternalController(viewerUrl)' ViewerURL should return what was passed into the constructorDim 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 calledDebug.Assert(controller.IsStarted = False)applicationName = String.Emptyversion = String.Emptycontroller.InitApplication(applicationName, version, externalControlPort)' IsStarted should be 'true' because InitApplication has been calledDebug.Assert(controller.IsStarted = True)controller.CloseApplication()' Shutdown the command queuecontroller.Shutdown()' IsStarted should be 'false' because Shutdown has been calledDebug.Assert(controller.IsStarted = False)End Sub
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
