private void FontSizeComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (this.FontSizeComboBox.SelectedIndex >= 0) { string name = (string)this.FontSizeComboBox.SelectedItem; ChannelSession.Settings.ChatFontSize = this.fontSizes[name]; GlobalEvents.ChatFontSizeChanged(); } }