private void BindData() { var currentTheme = ThemeSwitcher.GetCurrentTheme(); foreach (var theme in ThemeSwitcher.ListThemes()) { var item = new ListItem(theme); item.Selected = theme == currentTheme; ddlThemes.Items.Add(item); } }
private void BindData() { var currentTheme = ThemeSwitcher.GetCurrentTheme(); foreach (var theme in ThemeSwitcher.ListThemes()) { var item = new ListItem(theme); item.Selected = theme == currentTheme; ddlThemes.Items.Add(item); } }