Example #1
0
        private void btnWatermarkTextColorPicker_Click(object sender, RoutedEventArgs e)
        {
            ColorPickerDialog cPicker = new ColorPickerDialog();

            cPicker.StartingColor = HardySoft.CC.Converter.ColorConverter.ConvertColor(this.WatermarkTextColor);
            cPicker.Owner         = Window.GetWindow(this);

            bool?dialogResult = cPicker.ShowDialog();

            if (dialogResult != null && (bool)dialogResult == true)
            {
                this.WatermarkTextColor = HardySoft.CC.Converter.ColorConverter.ConvertColor(cPicker.SelectedColor);
            }
        }
        private void btnImageBorderColorPicker_Click(object sender, RoutedEventArgs e)
        {
            ColorPickerDialog cPicker = new ColorPickerDialog();

            cPicker.StartingColor = ColorConverter.ConvertColor(ps.BorderSetting.BorderColor);
            cPicker.Owner         = Window.GetWindow(this);

            bool?dialogResult = cPicker.ShowDialog();

            if (dialogResult != null && (bool)dialogResult == true)
            {
                ps.BorderSetting.BorderColor = ColorConverter.ConvertColor(cPicker.SelectedColor);
            }
        }