LEADTOOLS WebForms and AJAX (Leadtools.Medical.WebViewer.ExternalControl assembly)

UserLogout Method

Show in webframe
Example 



Logs out of the MedicalViewer and returns to the Login page.
Syntax
'Declaration
 
Public Function UserLogout() As ControllerReturnCode
'Usage
 
Dim instance As MedicalWebViewerExternalController
Dim value As ControllerReturnCode
 
value = instance.UserLogout()
public ControllerReturnCode UserLogout()
public:
ControllerReturnCode UserLogout(); 
Example
Copy Code  
Imports Leadtools
Imports Leadtools.Examples
Imports Leadtools.Medical.WebViewer.ExternalControl

Private Sub MedicalWebViewerExternalController_UserLogout()
    Dim applicationName As String
    Dim version As String
    Dim externalControlPort As Integer = 500
    Const jonesPatientId As String = "12341234"
    Dim username As String = "bob"
    Dim password As String = "bob"

    Dim viewerUrl As String = "http://localhost/MedicalViewer/"

    Dim controller As New MedicalWebViewerExternalController(viewerUrl)

    applicationName = String.Empty
    version = String.Empty
    controller.InitApplication(applicationName, version, externalControlPort)

    controller.SelectedBrowser = MedicalWebViewerBrowser.GoogleChrome

    ' Login and display a patient, then logout
    controller.UserLogin(username, password)
    controller.ShowPatient(jonesPatientId)
    controller.UserLogout()

    Dim sMsg As String = String.Format("HTML5 Medical Viewer should be now be on the 'Log In' page'")
    MessageBox.Show(sMsg)

    controller.CloseApplication()

    ' Shutdown the command queue
    controller.Shutdown()
End Sub
using Leadtools;
using Leadtools.Examples;
using Leadtools.Medical.WebViewer.ExternalControl;

private void MedicalWebViewerExternalController_UserLogout()
{
   string applicationName;
   string version;
   int externalControlPort = 500;
   const string jonesPatientId = "12341234";
   string username = "bob";
   string password = "bob";

   string viewerUrl = "http://localhost/MedicalViewer/";

   MedicalWebViewerExternalController controller = new MedicalWebViewerExternalController(viewerUrl);

   controller.InitApplication(out applicationName, out version, externalControlPort);

   controller.SelectedBrowser = MedicalWebViewerBrowser.GoogleChrome;

   // Login and display a patient, then logout
   controller.UserLogin(username, password);
   controller.ShowPatient(jonesPatientId);
   controller.UserLogout();

   string sMsg = string.Format("HTML5 Medical Viewer should be now be on the 'Log In' page'");
   MessageBox.Show(sMsg);

   controller.CloseApplication();

   // Shutdown the command queue
   controller.Shutdown();
}
Requirements

Target Platforms

See Also

Reference

MedicalWebViewerExternalController Class
MedicalWebViewerExternalController Members

 

 


Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.