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

            brush.ShowDialog();
            if (brush.DialogResult == true)
            {
                LoseDiffBrush.Content    = brush.ResultColor.ToString();
                LoseDiffBrush.Foreground = new SolidColorBrush(brush.ResultColor);
                Overlay.LoseBrush        = brush.ResultColor;
                Properties.Settings.Default.LoseDiffBrush = brush.ResultColor.ToString();
            }
        }
Ejemplo n.º 2
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.º 3
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.º 4
0
        private void OtherBrush_Click(object sender, RoutedEventArgs e)
        {
            SelectColor other = new SelectColor((Color)ColorConverter.ConvertFromString(Properties.Settings.Default.OtherBrush))
            {
                Owner = this
            };

            other.ShowDialog();
            if (other.DialogResult == true)
            {
                OtherBrush.Content    = other.ResultColor.ToString();
                OtherBrush.Foreground = new SolidColorBrush(other.ResultColor);
                MainWindow.Other      = other.ResultColor;
                Properties.Settings.Default.OtherBrush = other.ResultColor.ToString();
            }
        }
Ejemplo n.º 5
0
        private void EveRgtBrush_Click(object sender, RoutedEventArgs e)
        {
            SelectColor evergt = new SelectColor((Color)ColorConverter.ConvertFromString(Properties.Settings.Default.EveRgtColor))
            {
                Owner = this
            };

            evergt.ShowDialog();
            if (evergt.DialogResult == true)
            {
                EveRgtBrush.Content    = evergt.ResultColor.ToString();
                EveRgtBrush.Foreground = new SolidColorBrush(evergt.ResultColor);
                MainWindow.EveRgt      = evergt.ResultColor;
                Properties.Settings.Default.EveRgtColor = evergt.ResultColor.ToString();
            }
        }
Ejemplo n.º 6
0
        /* 後でメソッドとかに置き換える */


        private void MyBrush_Click(object sender, RoutedEventArgs e)
        {
            SelectColor mybrushcol = new SelectColor((Color)ColorConverter.ConvertFromString(Properties.Settings.Default.MyColorBrush))
            {
                Owner = this
            };

            mybrushcol.ShowDialog();
            if (mybrushcol.DialogResult == true)
            {
                MyBrush.Content    = mybrushcol.ResultColor.ToString();
                MyBrush.Foreground = new SolidColorBrush(mybrushcol.ResultColor);
                MainWindow.MyColor = mybrushcol.ResultColor;
                Properties.Settings.Default.MyColorBrush = mybrushcol.ResultColor.ToString();
            }
        }
Ejemplo n.º 7
0
        private void OverlayBrush_Click(object sender, RoutedEventArgs e)
        {
            SelectColor brush = new SelectColor((Color)ColorConverter.ConvertFromString(Properties.Settings.Default.OverlayBrush))
            {
                Owner = this
            };

            brush.ShowDialog();
            if (brush.DialogResult == true)
            {
                OverlayAllBrush.Content    = brush.ResultColor.ToString();
                OverlayAllBrush.Foreground = new SolidColorBrush(brush.ResultColor);
                if (MainWindow.overlay != null && MainWindow.overlay.IsLoaded)
                {
                    MainWindow.overlay.Foreground = new SolidColorBrush(brush.ResultColor);
                }
                Properties.Settings.Default.OverlayBrush = brush.ResultColor.ToString();
            }
        }
Ejemplo n.º 8
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.ContentBackground = new SolidColorBrush(color.ResultColor);
                }
            }
        }
Ejemplo n.º 9
0
        private void ShowColorBox(object sender, RoutedEventArgs e)
        {
            SelectColor selectwindow = new SelectColor(System.Windows.Media.Color.FromArgb(255, 255, 255, 255));

            selectwindow.Show();
        }