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