当前位置: 首页>>代码示例>>C#>>正文


C# ModuleController.UpdateTabModuleSetting方法代码示例

本文整理汇总了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);
        }
开发者ID:biganth,项目名称:Curt,代码行数:27,代码来源:Setup.ascx.cs

示例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);
            }
        }
开发者ID:sachatrauwaen,项目名称:OpenBlocks,代码行数:25,代码来源:Token_Settings.ascx.cs

示例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());
 }
开发者ID:ChrisHammond,项目名称:Engage-Publish,代码行数:9,代码来源:CategoryFeatureOptions.ascx.cs

示例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;
        }
开发者ID:jbrunken,项目名称:GitHubRepoStats,代码行数:12,代码来源:Settings.cs

示例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);
            }
        }
开发者ID:KashbinRepository,项目名称:Core,代码行数:15,代码来源:Settings.ascx.cs

示例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");
                    }
                }

            }
        }
开发者ID:sachatrauwaen,项目名称:OpenBlocks,代码行数:26,代码来源:FeatureController.cs

示例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);
            }
        }
开发者ID:EngageSoftware,项目名称:Engage-F3,代码行数:19,代码来源:Settings.ascx.cs

示例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);
        }
开发者ID:hungnt-me,项目名称:Dnn.Platform,代码行数:46,代码来源:Setup.ascx.cs

示例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);
     }
 }
开发者ID:RichardHowells,项目名称:dnnextensions,代码行数:12,代码来源:Settings.ascx.cs

示例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);
     }
 }
开发者ID:kieungocdung,项目名称:idgwebdn,代码行数:15,代码来源:Settings.ascx.cs

示例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);
     }
 }
开发者ID:ChrisHammond,项目名称:Engage-Publish,代码行数:12,代码来源:Settings.ascx.cs

示例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);
            }
        }
开发者ID:sunsiz,项目名称:dnn6-chinese-language-pack,代码行数:14,代码来源:Settings.ascx.cs

示例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);
        }
    }
开发者ID:hoaian89,项目名称:DAA,代码行数:15,代码来源:Settings.ascx.cs

示例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);
            }
        }
开发者ID:helder1978,项目名称:Store,代码行数:16,代码来源:AccountSettings.ascx.cs

示例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);

                }
        }
开发者ID:Cumbria,项目名称:DNN_SampleModule,代码行数:17,代码来源:settings.ascx.cs


注:本文中的DotNetNuke.Entities.Modules.ModuleController.UpdateTabModuleSetting方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。