Exemplo n.º 1
0
        private void ButtonBearingGuideColor_Click(object sender, RoutedEventArgs e)
        {
            var ccw = new ColorChooserWindow(ColorSpace.Parse(Settings.Default.Preferences_Appearance_BearingGuideColor));

            if (ccw.ShowDialog() == true)
            {
                Settings.Default.Preferences_Appearance_BearingGuideColor = ccw.Colors[0].ToString();
            }
        }
Exemplo n.º 2
0
        private void ButtonCharacterSetColors_Click(object sender, RoutedEventArgs e)
        {
            var colors = from string colorString in Settings.Default.Preferences_Appearance_CharacterSetColors
                         select ColorSpace.Parse(colorString);

            var ccw = new ColorChooserWindow(colors.ToArray());

            if (ccw.ShowDialog() == true)
            {
                var strings = new StringCollection();
                foreach (var color in ccw.Colors)
                {
                    strings.Add(color.ToString());
                }
                Settings.Default.Preferences_Appearance_CharacterSetColors = strings;
                _csManager.ColorScheme = new ColorScheme(Settings.Default.Preferences_Appearance_CharacterSetColors);
            }
        }