using System;
using CMS.FormControls;
public partial class CMSModules_Notifications_FormControls_MultipleNotificationGatewaySelector : FormEngineUserControl
{
#region "Properties"
///
/// Gets or sets the field value.
///
public override object Value
{
get
{
return uniSelector.Value;
}
set
{
if (uniSelector == null)
{
pnlUpdate.LoadContainer();
}
uniSelector.Value = value;
}
}
///
/// Gets or sets state enable.
///
public override bool Enabled
{
get
{
return base.Enabled;
}
set
{
if (uniSelector == null)
{
pnlUpdate.LoadContainer();
}
base.Enabled = value;
uniSelector.Enabled = value;
}
}
#endregion
protected void Page_Load(object sender, EventArgs e)
{
if (StopProcessing)
{
uniSelector.StopProcessing = true;
}
else
{
ReloadData();
}
}
///
/// Reloads the data in the selector.
///
public void ReloadData()
{
uniSelector.IsLiveSite = IsLiveSite;
uniSelector.DisplayNameFormat = "{%GatewayDisplayName%}";
uniSelector.ReturnColumnName = "GatewayName";
uniSelector.ResourcePrefix = "notificationgatewayselector";
}
}