Table of Contents

Add a Service View

The service view is used to control a module via the HMI, which is particularly useful for commissioning and troubleshooting.

Example

This example adds a service view to the module example.

Implement the IHasServiceView interface:

public class MyDeviceModule : LisrtModule, IInitializable, IHasServiceView
{
    private MyDeviceServiceServiceViewModel _serviceViewModel;
    
    public void ShowServiceView()
    {
        if (_serviceViewModel == null)
            _serviceViewModel = new MyDeviceServiceServiceViewModel(this);

        var shell = IoC.Get<IShell>();
        shell.OpenDocument(_serviceViewModel);
    }
}

See Also