using System;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CMS.CMSImportExport;
using CMS.GlobalHelper;
using CMS.UIControls;
public partial class CMSModules_ImportExport_Controls_Import_ma_automationprocess : ImportExportControl
{
///
/// True if import into existing site.
///
protected bool ExistingSite
{
get
{
if (Settings != null)
{
return ((SiteImportSettings)Settings).ExistingSite;
}
return true;
}
}
///
/// True if the data should be imported.
///
protected bool Import
{
get
{
return chkObject.Checked && Visible;
}
}
protected void Page_Load(object sender, EventArgs e)
{
chkObject.Text = GetString("CMSImport_Processes.ImportWorkFlowTriggers");
Visible = ((SiteImportSettings)Settings).SiteIsIncluded;
}
///
/// Gets settings.
///
public override void SaveSettings()
{
Settings.SetSettings(ImportExportHelper.SETTINGS_WORKFLOW_TRIGGERS, Import);
}
///
/// Reload data.
///
public override void ReloadData()
{
chkObject.Checked = ValidationHelper.GetBoolean(Settings.GetSettings(ImportExportHelper.SETTINGS_WORKFLOW_TRIGGERS), !ExistingSite && Visible);
}
}