IOperationServiceAddButtonToWindowsServiceMenu Method |
Adds a button to plugins menu in the Syrve Agent (Windows Service).
Namespace: Resto.Front.ApiAssembly: Resto.Front.Api.V9 (in Resto.Front.Api.V9.dll)
SyntaxIDisposable AddButtonToWindowsServiceMenu(
string caption,
Action<IViewManager> callback
)
Parameters
- caption String
-
Text to display on the button
- callback ActionIViewManager
-
Button click event handler.
Return Value
IDisposable
Remarks
Use method's return value to remove the button or it will be automatically removed when plugin is unloaded.
See Also