private void ChangeMajorLanguage(Settings.Channel channel, ClientLanguage language) { if (ironworksSettings != null) { channel.MajorLanguage = language; } }
private void ToggleChannelShowButton(ImageAwesome icon, Settings.Channel channel) { if (icon.Icon.Equals(FontAwesomeIcon.Eye)) { icon.Icon = FontAwesomeIcon.EyeSlash; channel.Show = false; } else { icon.Icon = FontAwesomeIcon.Eye; channel.Show = true; } }
private void LoadChannelState(StackPanel channelPanel, Settings.Channel channel) { var show = channel.Show; foreach (var ui in channelPanel.Children) { if (ui is Button) { var icon = ((Button)ui).Content as ImageAwesome; icon.Icon = show ? FontAwesomeIcon.Eye : FontAwesomeIcon.EyeSlash; } else if (ui is ComboBox) { ((ComboBox)ui).SelectedIndex = (int)channel.MajorLanguage; } } }