private void ThemesComboBoxSelectionChanged(object sender, SelectionChangedEventArgs e)
{
ComboBoxItem selectedItem = (ComboBoxItem)this.ThemesComboBox.SelectedItem;
if (selectedItem != null)
{
Theme newSelectedTheme = (Theme)selectedItem.Tag;
if (newSelectedTheme.Identifier != this.selectedTheme.Identifier)
{
if (this.PromptToSaveIfRequired())
{
this.timerWindow.Options.Theme = newSelectedTheme;
this.BindTimerWindow();
}
else
{
// Revert the selection
this.BindSelectedTheme();
}
}
}
}