// ScriptType: ClientScript // ScriptLanguage: CS using System; using System.Diagnostics; using System.Collections.Generic; using log4net; using Bosch.Vms.Core; using Bosch.Vms.SDK; [BvmsScriptClass()] public class ClientScript : IDisposable { private readonly IClientApi Api; private readonly ILog Logger; public ClientScript(IClientApi api) { this.Logger = LogManager.GetLogger("ClientScript"); this.Api = api; } public void Dispose() { // Use this method to cleanup any resources here (consider fully implementing the Dispose pattern). // For example, stop and dispose any started timers. Ensure that all threads that were started are stopped here. // DO NOT BLOCK in this method for a very long time, as this may block the applications current activity. } [Scriptlet("b393d429-6cba-42e7-98f5-45c7e86ba4f9")] public void FullScreenAndFavourite() { // Enter full screen mode on screen 1 Api.ContentManager.EnterFullscreen(1); //create and display example Favorite, for monitor 1, granularity 1, camera with logical number 1 Api.ContentManager.ResetMonitor(1); Api.ContentManager.DisplayCamera(new ImagePane(1,1), Api.CameraManager.GetCameraByLogicalNumber(1)); } }