Example #1
0
        public ThemeObj GetById(string name)
        {
            ThemeObj result = new ThemeObj();
            ThemeObjFilter filter = new ThemeObjFilter();
            filter.Name = name;
            List<ThemeObj> list = new ThemesObjManager().GetByFilter(filter);
            if (list.Count > 0)
                result = list[0];

            return result;
        }
Example #2
0
    private void loadDropThemes()
    {
        DropCurrTheme.Items.Clear();
        DropCurrTheme.Items.Add(new ListItem(Utility.GetLabel("LblUseBlobal", "Use global"), ""));

        Dictionary<string, string> recordList = new ThemesObjManager().GetList();
        foreach (KeyValuePair<string, string> item in recordList)
        {
            DropCurrTheme.Items.Add(new ListItem(item.Value, item.Key));
        }
    }