Esempio n. 1
0
        /// <summary>
        /// Builds a list of all tabs
        /// </summary>
        private void BuildModules()
        {
            var tabs = from tab in CaisisConfiguration.GetModuleConfigList()
                       where tab.IsTab
                       select tab.Name;

            ModulesRptr.DataSource = tabs;
            ModulesRptr.DataBind();

            ModulesCount.Text = tabs.Count().ToString();
        }
Esempio n. 2
0
        /// <summary>
        /// Builds a list of all modules/tabs
        /// </summary>
        private void BuildModulesTabs()
        {
            var tabs = from tab in CaisisConfiguration.GetModuleConfigList()
                       where tab.IsTab
                       select tab.Name;

            ModulesRptr.DataSource = tabs;
            ModulesRptr.DataBind();

            // set labels
            ListMainLabel.Text  = "Modules / Tabs";
            ListCountLabel.Text = tabs.Count().ToString();
            ListLabel.Text      = "Modules in Caisis";

            // set list visibility
            ModulesRptr.Visible      = true;
            ModuleGroupsRptr.Visible = false;
        }