using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CXS.Retail.Extensibility.Modules.Inventory;
using CXS.Retail.Extensibility;
using CXS.SubSystem.Inventory;
using System.Windows.Forms;
namespace SampleAddOnForMANAGEMENT CONSOLEEvents
{
class ProductView : ProductViewModuleBase
{
/// <summary>
/// On Before Cancel on ProductAddEditView .
/// </summary>
/// <param name="sender"></param>
/// <param name="args"></param>
public override void OnBeforeCancel(object sender, EventArgs<CXS.SubSystem.Inventory.Product> args)
{
MessageBox.Show("On Before Cancel - ProductView");
}
/// <summary>
/// On After Cancel on ProductAddEditView .
/// </summary>
/// <param name="sender"></param>
/// <param name="args"></param>
public override void OnAfterCancel(object sender, EventArgs<Product> args)
{
MessageBox.Show("On After Cancel - ProductView");
}
public override void OnBeforeSave(object sender, EventArgs<Product> args)
{
MessageBox.Show("Addon2 - On Before save");
}
}
}