Hourglass.Windows.ThemeManagerWindow.BindSelectedTheme C# (CSharp) Method

BindSelectedTheme() private method

Binds the selected theme to the ThemesComboBox.
private BindSelectedTheme ( ) : void
return void
        private void BindSelectedTheme()
        {
            for (int i = 0; i < this.ThemesComboBox.Items.Count; i++)
            {
                ComboBoxItem item = (ComboBoxItem)this.ThemesComboBox.Items[i];
                Theme theme = (Theme)item.Tag;
                if (theme != null && this.SelectedTheme != null && theme.Identifier == this.SelectedTheme.Identifier)
                {
                    this.ThemesComboBox.SelectedIndex = i;
                    break;
                }
            }
        }