Пример #1
0
        // New Method to add row in data table, from and to GUID and Type (Foreign)
        public DMBase(ref DESettings settings, bool initialiseData)
        {
            // VBConversions Note: Non-static class variable initialization is below.  Class variables cannot be initially assigned non-static values in C#.
            DefaultTabType = DisplayTabsType.HORIZONTAL.ToString();
            this.settings  = settings;
            dtHiddenFields = new DataTable();
            dtHiddenFields.Columns.Add(new System.Data.DataColumn(FROM_COLUMN));
            dtHiddenFields.Columns.Add(new System.Data.DataColumn(TO_COLUMN));
            dtHiddenFields.Columns.Add(new System.Data.DataColumn(RELATION_TYPE));
            dtHiddenFields.Columns.Add(new System.Data.DataColumn(PROPERTY_NAME));
            SetHiddenFields();
            MConfigs          = new ModuleConfigurations();
            tbl_config_detail = new tbl_config_detail(settings);
            tbl_table_detail  = new tbl_table_detail(settings);
            SetValues();
            tbl_page_text_lang textLang = new tbl_page_text_lang(ref settings);

            pageTexts          = textLang.GetTextsForPage(settings.DefaultBusinessUnit, "SystemDefaults.aspx");
            DisplayTabs        = new DisplayTabs(pageTexts);
            settings.PageTexts = pageTexts;
            AccordionGroup     = new AccordionGroup(pageTexts);
            if (initialiseData)
            {
                SetModuleConfiguration();
            }
        }
Пример #2
0
        public static string[] GetDisplayTabs(DESettings settings)
        {
            tbl_page_text_lang textLang = new tbl_page_text_lang(ref settings);
            var   pageTexts             = textLang.GetTextsForPage(settings.DefaultBusinessUnit, "SystemDefaults.aspx");
            var   displayTabs           = new DisplayTabs(pageTexts);
            Array results = (Array)(displayTabs.Classes.Select(item => item.Key).ToArray());

            return((string[])results);
        }