📄 siteconfiginfo.cs
字号:
namespace PowerEasy.Components
{
using System;
using System.Collections.ObjectModel;
using System.Xml.Serialization;
[Serializable, XmlRoot("SiteConfig")]
public class SiteConfigInfo
{
private Collection<FrontTemplate> m_FrontTemplateList;
private PowerEasy.Components.IPLockConfig m_IPLockConfig;
private PowerEasy.Components.MailConfig m_MailConfig;
private PowerEasy.Components.ShopConfig m_ShopConfig;
private PowerEasy.Components.SiteInfo m_SiteInfo;
private PowerEasy.Components.SiteOption m_SiteOption;
private PowerEasy.Components.SmsConfig m_SmsConfig;
private PowerEasy.Components.ThumbsConfig m_ThumbsConfig;
private PowerEasy.Components.UserConfig m_UserConfig;
private PowerEasy.Components.WaterMarkConfig m_WaterMarkConfig;
public SiteConfigInfo()
{
if (this.m_MailConfig == null)
{
this.m_MailConfig = new PowerEasy.Components.MailConfig();
}
if (this.m_IPLockConfig == null)
{
this.m_IPLockConfig = new PowerEasy.Components.IPLockConfig();
}
if (this.m_UserConfig == null)
{
this.m_UserConfig = new PowerEasy.Components.UserConfig();
}
if (this.m_ShopConfig == null)
{
this.m_ShopConfig = new PowerEasy.Components.ShopConfig();
}
if (this.m_ThumbsConfig == null)
{
this.m_ThumbsConfig = new PowerEasy.Components.ThumbsConfig();
}
if (this.m_WaterMarkConfig == null)
{
this.m_WaterMarkConfig = new PowerEasy.Components.WaterMarkConfig();
}
if (this.m_SiteOption == null)
{
this.m_SiteOption = new PowerEasy.Components.SiteOption();
}
if (this.m_SiteInfo == null)
{
this.m_SiteInfo = new PowerEasy.Components.SiteInfo();
}
if (this.m_SmsConfig == null)
{
this.m_SmsConfig = new PowerEasy.Components.SmsConfig();
}
}
public void CopyToTemplateInfoList(Collection<FrontTemplate> infoList)
{
this.m_FrontTemplateList = new Collection<FrontTemplate>();
foreach (FrontTemplate template in infoList)
{
this.m_FrontTemplateList.Add(template);
}
}
public Collection<FrontTemplate> FrontTemplateList
{
get
{
if (this.m_FrontTemplateList == null)
{
this.m_FrontTemplateList = new Collection<FrontTemplate>();
}
return this.m_FrontTemplateList;
}
}
public PowerEasy.Components.IPLockConfig IPLockConfig
{
get
{
return this.m_IPLockConfig;
}
set
{
this.m_IPLockConfig = value;
}
}
public PowerEasy.Components.MailConfig MailConfig
{
get
{
return this.m_MailConfig;
}
set
{
this.m_MailConfig = value;
}
}
public PowerEasy.Components.ShopConfig ShopConfig
{
get
{
return this.m_ShopConfig;
}
set
{
this.m_ShopConfig = value;
}
}
public PowerEasy.Components.SiteInfo SiteInfo
{
get
{
return this.m_SiteInfo;
}
set
{
this.m_SiteInfo = value;
}
}
public PowerEasy.Components.SiteOption SiteOption
{
get
{
return this.m_SiteOption;
}
set
{
this.m_SiteOption = value;
}
}
public PowerEasy.Components.SmsConfig SmsConfig
{
get
{
return this.m_SmsConfig;
}
set
{
this.m_SmsConfig = value;
}
}
public PowerEasy.Components.ThumbsConfig ThumbsConfig
{
get
{
return this.m_ThumbsConfig;
}
set
{
this.m_ThumbsConfig = value;
}
}
public PowerEasy.Components.UserConfig UserConfig
{
get
{
return this.m_UserConfig;
}
set
{
this.m_UserConfig = value;
}
}
public PowerEasy.Components.WaterMarkConfig WaterMarkConfig
{
get
{
return this.m_WaterMarkConfig;
}
set
{
this.m_WaterMarkConfig = value;
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -