Exemplo n.º 1
0
 private void ChangeMajorLanguage(Settings.Channel channel, ClientLanguage language)
 {
     if (ironworksSettings != null)
     {
         channel.MajorLanguage = language;
     }
 }
Exemplo n.º 2
0
 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;
     }
 }
Exemplo n.º 3
0
        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;
                }
            }
        }