using System;
using System.Collections;
using CMS.FormControls;
using CMS.SettingsProvider;
using CMS.Ecommerce;
using CMS.GlobalHelper;
using CMS.UIControls;
public partial class CMSModules_Ecommerce_FormControls_Cloning_Ecommerce_DiscountCouponSettings : CloneSettingsControl
{
#region "Properties"
///
/// Gets properties hashtable.
///
public override Hashtable CustomParameters
{
get
{
return GetProperties();
}
}
///
/// Hide code name.
///
public override bool HideCodeName
{
get
{
return true;
}
}
#endregion
#region "Methods"
protected void Page_Load(object sender, EventArgs e)
{
if (!RequestHelper.IsPostBack())
{
txtCode.Text = InfoToClone.Generalized.GetUniqueCodeName();
}
}
///
/// Returns properties hashtable.
///
private Hashtable GetProperties()
{
Hashtable result = new Hashtable();
result[ECommerceObjectType.DISCOUNTCOUPON + ".code"] = txtCode.Text;
return result;
}
#endregion
}