本文整理汇总了C#中DotNetNuke.Entities.Modules.ModuleController.UpdateTabModuleSetting方法的典型用法代码示例。如果您正苦于以下问题:C# ModuleController.UpdateTabModuleSetting方法的具体用法?C# ModuleController.UpdateTabModuleSetting怎么用?C# ModuleController.UpdateTabModuleSetting使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DotNetNuke.Entities.Modules.ModuleController
的用法示例。
在下文中一共展示了ModuleController.UpdateTabModuleSetting方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: btGo_Click
public void btGo_Click(object sender, EventArgs e)
{
//Setup Child Page - Main View/Activity
TabInfo tab = CreatePage(PortalSettings.ActiveTab, PortalId, TabId, "Group Activity", false);
//Add Module to Child Page
int groupViewModuleId = AddModule(tab, PortalId, "Social Groups", "ContentPaneProfile");
int journalModuleId = AddModule(tab, PortalId, "Journal", "ContentPaneProfile");
int consoleId = AddModule(tab, PortalId, "Console", "RightPaneProfile");
var mc = new ModuleController();
ModuleInfo groupConsoleModule = mc.GetModule(consoleId, tab.TabID);
TabInfo memberTab = CreatePage(PortalSettings.ActiveTab, PortalId, tab.TabID, "Members", false);
mc.CopyModule(groupConsoleModule, memberTab, "RightPaneProfile", true);
ModuleInfo groupViewModule = mc.GetModule(groupViewModuleId, tab.TabID);
mc.CopyModule(groupViewModule, memberTab, "ContentPaneProfile", true);
AddModule(memberTab, PortalId, "DotNetNuke.Modules.MemberDirectory", "ContentPaneProfile");
//List Settings
var modules = new ModuleController();
modules.UpdateTabModuleSetting(TabModuleId, Constants.GroupLoadView, GroupMode.List.ToString());
modules.UpdateTabModuleSetting(TabModuleId, Constants.GroupViewPage, tab.TabID.ToString(CultureInfo.InvariantCulture));
Response.Redirect(Request.RawUrl);
}
示例2: UpdateSettings
public override void UpdateSettings()
{
try
{
ModuleController controller = new ModuleController();
controller.UpdateTabModuleSetting(TabModuleId, "TokenProvider", ddlTokens.SelectedValue);
foreach (TokenConfigurator conf in phConfigurator.Controls)
{
var sets = conf.SaveSettings();
foreach (DictionaryEntry set in sets)
{
controller.UpdateTabModuleSetting(TabModuleId, (string)set.Key, (string)set.Value);
}
if (conf.Visible)
{
controller.UpdateTabModuleSetting(TabModuleId, "Token", conf.getToken());
}
}
}
catch (Exception exc) // Module failed to load
{
Exceptions.ProcessModuleLoadException(this, exc);
}
}
示例3: UpdateSettings
public override void UpdateSettings()
{
//save the new setting
var modules = new ModuleController();
modules.UpdateTabModuleSetting(TabModuleId, "cfCategoryId", ddlCategoryList.SelectedValue);
modules.UpdateTabModuleSetting(TabModuleId, "cfDisplayOption", ddlViewOptions.SelectedValue);
modules.UpdateTabModuleSetting(TabModuleId, "cfEnableRss", chkEnableRss.Checked.ToString());
modules.UpdateTabModuleSetting(TabModuleId, "cfRandomize", chkRandomize.Checked.ToString());
}
示例4: Save
public bool Save(int tabModuleId)
{
var modules = new ModuleController();
modules.UpdateTabModuleSetting(tabModuleId, "RepoOwner", RepoOwner == null ? string.Empty : RepoOwner.Trim());
modules.UpdateTabModuleSetting(tabModuleId, "RepoName", RepoName == null ? string.Empty : RepoName.Trim());
modules.UpdateTabModuleSetting(tabModuleId, "Releases", ((int)ReleaseType).ToString());
modules.UpdateTabModuleSetting(tabModuleId, "PreReleases", ((int)PreReleaseType).ToString());
modules.UpdateTabModuleSetting(tabModuleId, "EnableDownloadCounts", EnableDownloadCounts ? "1" : "0");
return true;
}
示例5: UpdateSettings
public override void UpdateSettings()
{
try
{
var objModules = new ModuleController();
objModules.UpdateTabModuleSetting(TabModuleId, "ProfileTemplate", txtTemplate.Text);
objModules.UpdateTabModuleSetting(TabModuleId, "IncludeButton", IncludeButton.Checked.ToString(CultureInfo.InvariantCulture));
}
catch (Exception exc)
{
//Module failed to load
Exceptions.ProcessModuleLoadException(this, exc);
}
}
示例6: AddAdminPages
public static void AddAdminPages(string tabName, string description, string tabIconFile, string tabIconFileLarge, bool isVisible, int moduleDefId, string moduleTitle, string moduleIconFile, bool inheritPermissions)
{
var portalController = new PortalController();
ArrayList portals = portalController.GetPortals();
//Add Page to Admin Menu of all configured Portals
for (int intPortal = 0; intPortal <= portals.Count - 1; intPortal++)
{
var portal = (PortalInfo)portals[intPortal];
//Create New Admin Page (or get existing one)
TabInfo newPage = Upgrade.AddAdminPage(portal, tabName, description, tabIconFile, tabIconFileLarge, isVisible);
//Add Module To Page
Upgrade.AddModuleToPage(newPage, moduleDefId, moduleTitle, moduleIconFile, inheritPermissions);
var moduleController = new ModuleController();
if (newPage != null) {
foreach (var module in moduleController.GetTabModules(newPage.TabID).Values)
{
moduleController.UpdateTabModuleSetting(module.TabModuleID, "hideadminborder", "true");
}
}
}
}
示例7: UpdateSettings
/// <summary>
/// Saves the modified settings to the Database
/// </summary>
public override void UpdateSettings()
{
try
{
var objModules = new ModuleController();
objModules.UpdateTabModuleSetting(this.TabModuleId, "chkEnablePublish", this.EnablePublishCheckBox.Checked.ToString());
objModules.UpdateTabModuleSetting(this.TabModuleId, "lowerTabId", this.LowerTabIdTextBox.Text);
objModules.UpdateTabModuleSetting(this.TabModuleId, "upperTabId", this.UpperTabIdTextBox.Text);
}
catch (Exception exc)
{
// Module failed to load
Exceptions.ProcessModuleLoadException(this, exc);
}
}
示例8: btGo_Click
public void btGo_Click(object sender, EventArgs e)
{
//Setup Child Page - Main View/Activity
TabInfo tab = CreatePage(PortalSettings.ActiveTab, PortalId, TabId, "Group Activity", false);
//Add Module to Child Page
int groupViewModuleId = AddModule(tab, PortalId, "Social Groups", "ContentPane");
int journalModuleId = AddModule(tab, PortalId, "Journal", "ContentPane");
int consoleId = AddModule(tab, PortalId, "Console", "RightPane");
var mc = new ModuleController();
ModuleInfo groupConsoleModule = mc.GetModule(consoleId, tab.TabID);
TabInfo memberTab = CreatePage(PortalSettings.ActiveTab, PortalId, tab.TabID, "Members", false);
mc.CopyModule(groupConsoleModule, memberTab, "RightPane", true);
ModuleInfo groupViewModule = mc.GetModule(groupViewModuleId, tab.TabID);
mc.CopyModule(groupViewModule, memberTab, "ContentPane", true);
AddModule(memberTab, PortalId, "DotNetNuke.Modules.MemberDirectory", "ContentPane");
//List Settings
var modules = new ModuleController();
modules.UpdateTabModuleSetting(TabModuleId, Constants.GroupLoadView, GroupMode.List.ToString());
modules.UpdateTabModuleSetting(TabModuleId, Constants.GroupViewPage, tab.TabID.ToString(CultureInfo.InvariantCulture));
//Default Social Groups
var defaultGroup = RoleController.GetRoleGroupByName(PortalId, Constants.DefaultGroupName);
var groupId = -2;
if (defaultGroup != null)
{
groupId = defaultGroup.RoleGroupID;
}
else
{
var groupInfo = new RoleGroupInfo();
groupInfo.PortalID = PortalId;
groupInfo.RoleGroupName = Constants.DefaultGroupName;
groupInfo.Description = Constants.DefaultGroupName;
groupId = RoleController.AddRoleGroup(groupInfo);
}
modules.UpdateTabModuleSetting(TabModuleId, Constants.DefaultRoleGroupSetting, groupId.ToString());
Response.Redirect(Request.RawUrl);
}
示例9: UpdateSettings
public override void UpdateSettings()
{
try
{
ModuleController controller = new ModuleController();
controller.UpdateTabModuleSetting(TabModuleId, "field", txtField.Text);
}
catch (Exception exc) // Module failed to load
{
Exceptions.ProcessModuleLoadException(this, exc);
}
}
示例10: UpdateSettings
/// <summary>
/// handles updating the module settings for this control
/// </summary>
public override void UpdateSettings()
{
try
{
ModuleController controller = new ModuleController();
controller.UpdateTabModuleSetting(this.TabModuleId, "template", txtTemplate.Text);
}
catch (Exception ex)
{
Exceptions.ProcessModuleLoadException(this, ex);
}
}
示例11: UpdateSettings
public override void UpdateSettings()
{
try
{
var modules = new ModuleController();
modules.UpdateTabModuleSetting(TabModuleId, "Template", txtTemplate.Text.Trim());
}
catch (Exception exc)
{
Exceptions.ProcessModuleLoadException(this, exc);
}
}
示例12: UpdateSettings
public override void UpdateSettings()
{
try
{
var objModules = new ModuleController();
objModules.UpdateTabModuleSetting(TabModuleId, "ProfileTemplate", txtTemplate.Text);
}
catch (Exception exc)
{
//Module failed to load
Exceptions.ProcessModuleLoadException(this, exc);
}
}
示例13: UpdateSettings
public override void UpdateSettings()
{
try
{
ModuleController objModules = new ModuleController();
objModules.UpdateTabModuleSetting(TabModuleId, "template", tx.Text);
//refresh cache
SynchronizeModule();
}
catch (Exception exc) //Module failed to load
{
Exceptions.ProcessModuleLoadException(this, exc);
}
}
示例14: UpdateSettings
public override void UpdateSettings()
{
try
{
if (Page.IsValid)
{
Entities.Modules.ModuleController objModules = new Entities.Modules.ModuleController();
objModules.UpdateTabModuleSetting(TabModuleId, "RequireSSL", chkRequireSSL.Checked.ToString());
}
}
catch(Exception ex)
{
Exceptions.ProcessModuleLoadException(this, ex);
}
}
示例15: UpdateSettings
public override void UpdateSettings()
{
try
{
ModuleController modules = new ModuleController();
// modules.UpdateModuleSetting(ModuleId, "VariableName", txtVariableName.Text);
modules.UpdateTabModuleSetting(TabModuleId, "VariableName", txtVariableName.Text);
}
catch (Exception exc) //Module failed to load
{
Exceptions.ProcessModuleLoadException(this, exc);
}
}