Ejemplo n.º 1
0
        private void ListColor_Click(object sender, RoutedEventArgs e)
        {
            SelectColor listcolor = new SelectColor((Color)ColorConverter.ConvertFromString(Properties.Settings.Default.FontColor))
            {
                Owner = this
            };

            listcolor.ShowDialog();
            if (listcolor.DialogResult == true)
            {
                TextColorBox.Content                  = listcolor.ResultColor.ToString();
                TextColorBox.Foreground               = new SolidColorBrush(listcolor.ResultColor);
                m.CombatantData.Foreground            = new SolidColorBrush(listcolor.ResultColor);
                Properties.Settings.Default.FontColor = listcolor.ResultColor.ToString();
            }
        }
Ejemplo n.º 2
0
        private void UIColor_Click(object sender, RoutedEventArgs e)
        {
            SelectColor uicolor = new SelectColor((Color)ColorConverter.ConvertFromString(Properties.Settings.Default.Foreground))
            {
                Owner = this
            };

            uicolor.ShowDialog();
            if (uicolor.DialogResult == true)
            {
                ForegroundUIColor.Content              = uicolor.ResultColor.ToString();
                ForegroundUIColor.Foreground           = new SolidColorBrush(uicolor.ResultColor);
                Properties.Settings.Default.Foreground = uicolor.ResultColor.ToString();
                m.BindingGroup.UpdateSources();
            }
        }
Ejemplo n.º 3
0
        private void BackColor_Click(object sender, RoutedEventArgs e)
        {
            SelectColor color = new SelectColor((Color)ColorConverter.ConvertFromString(Properties.Settings.Default.BackColor))
            {
                Owner = this
            };

            color.ShowDialog();
            if (color.DialogResult == true)
            {
                BackColorInput.Content = color.ResultColor.ToString();
                BackPreview.Fill       = new SolidColorBrush(color.ResultColor);
                Properties.Settings.Default.BackColor = color.ResultColor.ToString();
                if (Properties.Settings.Default.BackContent == "Color")
                {
                    m.Background = new SolidColorBrush(color.ResultColor);
                }
            }
        }
Ejemplo n.º 4
0
        private void ShowColorBox(object sender, RoutedEventArgs e)
        {
            SelectColor selectwindow = new SelectColor(System.Windows.Media.Color.FromArgb(255, 255, 255, 255));

            selectwindow.Show();
        }