<< Click to Display Table of Contents >> Navigation: Developers' Guide > Customizing User Interface > FAQs > Samples > Creating a Sample Add-On |
Navigation: Developers' Guide > Customizing User Interface > FAQs > Samples >
Creating a Sample Add-On
This topic demonstrates how to create an add-on application for Management Console (MC) and Point of Sale (POS).
Refer to the "BasicSampleAddOn" 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; using System.Windows.Forms;
namespace BasicSampleAddOn { /// <summary> /// Add on details like name, company, description, version etc. /// </summary> class AddOnBasePlugin : BasePlugin { public override string CompanyName { get { return "Company Name"; } }
public override string Description { get { return "Sample add-on"; } }
/// <summary> /// Start up method for add-on. Here, we can define custom menus for MC or POS. /// </summary> public override void Start() { base.Start(); MessageBox.Show("Sample add-on started"); MessageBox.Show("Sample add-on version: " + VersionInfo.ToString()); }
public override void ShutDown() { base.ShutDown(); MessageBox.Show("Sample add-on shutting down."); }
//Specify add-on version. public override Version VersionInfo { get { return new Version("1.0.0.0"); }
} public override string Name { get { return "SampleAddOn"; } } } } |