Click or drag to resize

PluginIntegrationServiceExtensionsAddButtonOnClosedOrderView Method

Adds action button to display it in the closed order details screen. Button will be automatically removed on iikoFront restarts or you will dispose method's return value.

Namespace:  Resto.Front.Api.Extensions
Assembly:  Resto.Front.Api.V6 (in Resto.Front.Api.V6.dll)
Syntax
C#
public static IDisposable AddButtonOnClosedOrderView(
	this IPluginIntegrationService service,
	string caption,
	Action<IOrder, ICashRegisterInfo, IViewManager> action
)

Parameters

service
Type: Resto.Front.ApiIPluginIntegrationService
caption
Type: SystemString
Text to display on button in 'Closed order details screen' -> 'Additional'."
action
Type: SystemActionIOrder, ICashRegisterInfo, IViewManager
Action to execute on button pressed.

Return Value

Type: IDisposable
You may dispose result to remove button.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IPluginIntegrationService. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also