Click or drag to resize

IOperationServiceAddButtonToOrderEditScreen Method

Adds a button to plugins menu on the order edit screen.

Namespace:  Resto.Front.Api
Assembly:  Resto.Front.Api.V7 (in Resto.Front.Api.V7.dll)
Syntax
C#
IDisposable AddButtonToOrderEditScreen(
	string caption,
	Action<(IOrder order, IOperationService os, IViewManager vm)> callback,
	string iconGeometry = null
)

Parameters

caption
Type: SystemString
Text to display on the button
callback
Type: SystemActionValueTupleIOrder, IOperationService, IViewManager
Button click event handler.
iconGeometry (Optional)
Type: SystemString
Path geometry to show icon on the button. Path markup syntax is described here: https://docs.microsoft.com/en-us/dotnet/desktop/wpf/graphics-multimedia/path-markup-syntax?view=netframeworkdesktop-4.8

Return Value

Type: IDisposable
Remarks
Use method's return value to remove the button or it will be automatically removed when plugin is unloaded.
See Also