<< Click to Display Table of Contents >> Navigation: Developers' Guide > Customizing User Interface > FAQs > Samples > Adding a Custom User Menu and Handling Menu Event |
Navigation: Developers' Guide > Customizing User Interface > FAQs > Samples >
Adding a Custom User Menu and Handling Menu Event
This topic demonstrates how to use the "POSMenuForCustomer" events for adding custom menu and handling menu event for the Point of Sale (POS) application.
Refer to the "SampleAddOnForCustomPOSMenu" project file on CitiXsys Knowledge Portal.
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using CXS.Retail.Extensibility.Menu; using CXS.Retail.Extensibility; using System.Windows.Forms; using CXSRetailPOS;
namespace SampleAddOnForCustomPOSMenu { class POSMenuForCustomer : POSMenuItemCommand {
public POSMenuForCustomer():base() { base.Position = 1; //we need to specify category where we are adding the menu item. base.Category = POSMenuCategory.CustomerOperations; base.Caption = "Custom Menu 1"; base.Id = "CustomMenu1"; base.ToolTip = "Custom Menu 1";
}
public override void Execute() { MessageBox.Show("Custom Menu 1 Clicked !!!"); } }
class POSMenuForStore : POSMenuItemCommand {
public POSMenuForStore() : base() { base.Position = 5; //we need to specify category where we are adding the menu item. base.Category = POSMenuCategory.StoreOperations; base.Caption = "Custom Menu 2"; base.Id = "CustomMenu2"; base.ToolTip = "Custom Menu 2";
}
public override void Execute() {
MessageBox.Show("Custom Menu 2 Clicked !!!"); } }
} |