Hi everyone. Is there any way to customize “AlarmPlugin”? It would also be enough to customize the AlarmPlugin toolbar to add some of my buttons.
The same question applies to the VideoOS.RemoteClient.Plugin.Map plugin where even here, it would be enough for me to customize the toolbar.
I know I could put the plugins in a custom view or make a workspace plugin, but the requirement is to work on the Alarm Manager workspace.
Thanks.
Ciao
Gigi
You can add buttons to the toolbar in top where you see the Setup button and from the description this might be what you need. (You cannot modify the Alarm Plugin.)
The Smart Client Toolbar Plug-in sample shows how to make workspace toolbar buttons.
In the sample the buttons are only present when in Live and Playback workspace, this is governed by this code (SetViewItemBackgroundColorWorkSpaceToolbarPluginInstance)
public override void Init()
{
WorkSpaceToolbarPlaceDefinition.WorkSpaceIds = new List<Guid>() { ClientControl.LiveBuildInWorkSpaceId, ClientControl.PlaybackBuildInWorkSpaceId };
WorkSpaceToolbarPlaceDefinition.WorkSpaceStates = new List<WorkSpaceState>() { WorkSpaceState.Normal };
}
Try, as an experiment, to change it to
public override void Init()
{
WorkSpaceToolbarPlaceDefinition.WorkSpaceIds = new List<Guid>() { ClientControl.AlarmManagementBuildInWorkSpaceId };
WorkSpaceToolbarPlaceDefinition.WorkSpaceStates = new List<WorkSpaceState>() { WorkSpaceState.Normal };
}
It works! Thank you very much!!
Ciao.
Gigi