Ability to Add Buttons to the Delivery Orders Screen
The API V9Preview4 has introduced the ability to add buttons to the delivery orders screen, allowing plugins to display their own windows.
A method AddButtonToDeliveriesScreen has been added with the following parameters:
string caption— button title,bool isChecked— whether the button is checked,bool isEnabled— whether the button is enabled for clicking,Action<(IViewManager vm, (Guid , string , bool , string ) state)> callback— button click handler, where dialog windows can be displayed and changes can be made,iconGeometry— icon in Path Markup format (optional argument).
The button click handler takes an instance of IViewManager for displaying windows, as well as the current state of the button - (Guid buttonId, string caption, bool isChecked, string iconGeometry) state.