示例#1
0
        private void btnChooseColor_Click(object sender, EventArgs e)
        {
            ColorPickerDialog dialog = new ColorPickerDialog();
            dialog.ShowDialog();

            if (dialog.IsCanceled == false)
            {
                BackgroundColor = dialog.Color;
            }
        }
示例#2
0
        private void btnColor_Click(object sender, EventArgs e)
        {
            ColorPickerDialog dialog = new ColorPickerDialog();
            dialog.ShowDialog();

            if (dialog.IsCanceled == false)
            {
                Color = dialog.Color;

                if (OnPropChange != null)
                    OnPropChange(this, new TextPropPanel_OnPropChangeArgs(TextProp.Color));
            }
        }